Skip to contentSkip to conversation

Update mtd use of symbol_(get|put)

RFC PATCH In review Mauro Carvalho Chehab 1 participant 1 message Mar 10, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/3 Update mtd use of symbol_(get|put)

From: Trent Piepho <[email protected]>

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().

(quoted diff) +0 -0

b/drivers/mtd/chips/gen_probe.c

drivers/mtd/chips/gen_probe.c +2 -2
@@ -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) {