misc: fs_loader: Use device_get_global_by_ofnode to get to node
authorKeerthy <[email protected]>
Mon, 5 Nov 2018 06:04:53 +0000 (11:34 +0530)
committerTom Rini <[email protected]>
Fri, 16 Nov 2018 21:52:00 +0000 (16:52 -0500)
commit7c096ea4eea178a8be3e6bce9d603d34d21f680a
tree3e2076acbde3a54ed42ec5086a759aeaeec5e2a7
parent48e2f0c966c024d8b7768b2bef98e7338420390c
misc: fs_loader: Use device_get_global_by_ofnode to get to node

Instead of two staged ofnode_to_offset followed by
device_get_global_by_of_offset approach, direcly use the
device_get_global_by_ofnode to fetch the device.

Signed-off-by: Keerthy <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/misc/fs_loader.c