dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode()