aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/docprobe.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-08 09:05:05 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-08 09:05:05 -0400
commit5e535429a9117b8b6219da0e0cb087f52c0c9597 (patch)
treeb20a402b5696e2b5aabdc7a4720eaf33e306bd71 /drivers/mtd/devices/docprobe.c
parent73566edf9b91dd085ddb12033d0ea7288979dd10 (diff)
Remove inter_module_xxx() from DiskOnChip drivers.
Finally putting it back how it was before Keith got at it -- yay :) Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/devices/docprobe.c')
-rw-r--r--drivers/mtd/devices/docprobe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mtd/devices/docprobe.c b/drivers/mtd/devices/docprobe.c
index 13178b9dd00a..b83afe01574c 100644
--- a/drivers/mtd/devices/docprobe.c
+++ b/drivers/mtd/devices/docprobe.c
@@ -308,11 +308,15 @@ static void __init DoC_Probe(unsigned long physadr)
308 } 308 }
309 309
310 if (im_funcname) 310 if (im_funcname)
311 initroutine = inter_module_get_request(im_funcname, im_modname); 311 initroutine = symbol_get(im_funcname);
312 if (!initroutine) {
313 request_module(in_modname);
314 initroutine = symbol_get(im_funcname);
315 }
312 316
313 if (initroutine) { 317 if (initroutine) {
314 (*initroutine)(mtd); 318 (*initroutine)(mtd);
315 inter_module_put(im_funcname); 319 symbol_put_addr(initroutine);
316 return; 320 return;
317 } 321 }
318 printk(KERN_NOTICE "Cannot find driver for DiskOnChip %s at 0x%lX\n", name, physadr); 322 printk(KERN_NOTICE "Cannot find driver for DiskOnChip %s at 0x%lX\n", name, physadr);