public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 2/3] Update mtd use of symbol_(get|put)
@ 2007-03-10  4:31 Mauro Carvalho Chehab
  0 siblings, 0 replies; only message in thread
From: Mauro Carvalho Chehab @ 2007-03-10  4:31 UTC (permalink / raw)
  To: rusty; +Cc: LKML

From: Trent Piepho <xyzzy@speakeasy.org>

Make the mtd sub-system work with changes to __symbol_get().  mtd calls
__symbol_get() directly, rather than through the symbol_get() macro
because it uses a string it created with sprintf to specify the symbol
to
attach to.  It needs to be updated to supply THIS_MODULE as the user
parameter added to __symbol_get().

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>

diff --git a/drivers/mtd/chips/gen_probe.c
b/drivers/mtd/chips/gen_probe.c
--- a/drivers/mtd/chips/gen_probe.c
+++ b/drivers/mtd/chips/gen_probe.c
@@ -211,10 +211,10 @@ static inline struct mtd_info *cfi_cmdse
 
 	sprintf(probename, MODULE_SYMBOL_PREFIX "cfi_cmdset_%4.4X", type);
 
-	probe_function = __symbol_get(probename);
+	probe_function = __symbol_get(probename, THIS_MODULE);
 	if (!probe_function) {
 		request_module(probename + sizeof(MODULE_SYMBOL_PREFIX) - 1);
-		probe_function = __symbol_get(probename);
+		probe_function = __symbol_get(probename, THIS_MODULE);
 	}
 
 	if (probe_function) {



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-10  4:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-10  4:31 [RFC PATCH 2/3] Update mtd use of symbol_(get|put) Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox