[MTD] Use __symbol_get() instead of symbol_get() in NOR chip probe

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri May 19 21:59:02 EDT 2006


Commit:     5fc3dbc418e01345e25e96b3192a1c46051c3fdc
Parent:     dcb6592d72923123e3e479134f9381e0133d7d9d
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sat May 20 02:41:34 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat May 20 02:41:34 2006 +0100

    [MTD] Use __symbol_get() instead of symbol_get() in NOR chip probe
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 drivers/mtd/chips/gen_probe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c
index 52d59d3..00ca6f5 100644
--- a/drivers/mtd/chips/gen_probe.c
+++ b/drivers/mtd/chips/gen_probe.c
@@ -212,10 +212,10 @@ #ifdef CONFIG_MODULES
 
 	sprintf(probename, "cfi_cmdset_%4.4X", type);
 
-	probe_function = (void *)symbol_get(probename);
+	probe_function = __symbol_get(probename);
 	if (!probe_function) {
 		request_module(probename);
-		probe_function = (void *)symbol_get(probename);
+		probe_function = __symbol_get(probename);
 	}
 
 	if (probe_function) {



More information about the linux-mtd-cvs mailing list