[MTD] [MAPS] drivers/mtd/maps/ck804xrom.c: convert pci_module_init()
authorAdrian Bunk <bunk@stusta.de>
Thu, 26 Apr 2007 23:48:01 +0000 (01:48 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 27 Apr 2007 22:34:21 +0000 (23:34 +0100)
This patch converts the pci_module_init() usage to pci_register_driver().

It's currently #if 0'ed, but still not a bad idea to change it.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/ck804xrom.c

index 3d4a4d8ac789758b677b796cb83048ba59a93d47..688ef495888a6ba1efeef5ccff6f9a9646c4a102 100644 (file)
@@ -338,7 +338,7 @@ static int __init init_ck804xrom(void)
        }
        return -ENXIO;
 #if 0
-       return pci_module_init(&ck804xrom_driver);
+       return pci_register_driver(&ck804xrom_driver);
 #endif
 }