[MTD] Use __symbol_get() instead of symbol_get() in NOR chip probe
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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 @@
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) {