On Thu, 24 Mar 2022 at 12:23, Sean Anderson <[email protected]> wrote: > > The fs_loader device is used to pull in settings via the chosen node. > However, there was no library function for this, so arria10 was doing it > explicitly. This function subsumes that, and uses ofnode_get_chosen_node > instead of navigating the device tree directly. Because fs_loader pulls > its config from the environment by default, it's fine to create a device > with nothing backing it at all. Doing this allows enabling > CONFIG_FS_LOADER without needing to modify the device tree. > > Signed-off-by: Sean Anderson <[email protected]> > --- > > arch/arm/mach-k3/common.c | 2 +- > arch/arm/mach-omap2/boot-common.c | 2 +- > drivers/fpga/socfpga_arria10.c | 24 ++---------------------- > drivers/misc/fs_loader.c | 27 +++++++++++++++++++++++++++ > include/fs_loader.h | 12 ++++++++++++ > 5 files changed, 43 insertions(+), 24 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

