* [PATCH] Remove staticness from mtdpart_setup()
@ 2004-09-20 9:14 Juha Yrjölä
0 siblings, 0 replies; only message in thread
From: Juha Yrjölä @ 2004-09-20 9:14 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 388 bytes --]
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
[-- Attachment #2: mtdpart-staticness-patch.diff --]
[-- Type: text/x-patch, Size: 431 bytes --]
===== drivers/mtd/cmdlinepart.c 1.8 vs edited =====
--- 1.8/drivers/mtd/cmdlinepart.c 2004-08-03 13:17:08 +03:00
+++ edited/drivers/mtd/cmdlinepart.c 2004-09-20 11:36:46 +03:00
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-20 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 9:14 [PATCH] Remove staticness from mtdpart_setup() Juha Yrjölä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox