um: Extract load file helper from initrd.c
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Wed, 8 Dec 2021 15:11:22 +0000 (16:11 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 22 Dec 2021 19:32:36 +0000 (20:32 +0100)
commit361640b4fdc86167b0c25d8e73c08dcaa4ecd28a
tree36af31f11c70be3c0e135c6c56a5bc569acef444
parent8bb227ac34c062b466a0d5fd21f060010375880b
um: Extract load file helper from initrd.c

The file loading support in initrd.c can be re-used for
loading devicetrees.  Move it out of initrd.c.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/Makefile
arch/um/kernel/initrd.c
arch/um/kernel/load_file.c [new file with mode: 0644]
arch/um/kernel/um_arch.h [new file with mode: 0644]