]> git.dujemihanovic.xyz Git - u-boot.git/commit
misc: fs_loader: Use device_get_global_by_ofnode to get to node
authorKeerthy <j-keerthy@ti.com>
Mon, 5 Nov 2018 06:04:53 +0000 (11:34 +0530)
committerTom Rini <trini@konsulko.com>
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 <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/fs_loader.c