Remove staticness from mtdpart_setup()
PATCH 1/1 Remove staticness from mtdpart_setup()
Hi,
Attached is a patch that removes the static and __init keywords from mtdpart_setup(), so that the mtdpart partition definitions can come from other sources than the kernel command line. This is useful if you have another way of passing information to the kernel, e.g. the ATAG mechanism on ARM kernels, and do not want to override CONFIG_CMDLINE from the bootloader.
Cheers,
Juha
===== drivers/mtd/cmdlinepart.c 1.8 vs edited =====
drivers/mtd/cmdlinepart.c +1 -1
@@ -339,7 +339,7 @@* main.c::checksetup(). Note that we can not yet kmalloc() anything, * so we only save the commandline for later processing. */ -static int __init mtdpart_setup (char *s) +int mtdpart_setup (char *s) { cmdline = s;return 1 ;