[MTD] [MAPS] drivers/mtd/maps/ck804xrom.c: convert pci_module_init()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Apr 27 18:59:02 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=28b57cddb3ed4f7999e4b76ef36ebaaf6e2e0c37
Commit:     28b57cddb3ed4f7999e4b76ef36ebaaf6e2e0c37
Parent:     54d33c4c715b80cc022b8e4974a4de693c96fc99
Author:     Adrian Bunk <bunk at stusta.de>
AuthorDate: Fri Apr 27 01:48:01 2007 +0200
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Apr 27 23:34:21 2007 +0100

    [MTD] [MAPS] drivers/mtd/maps/ck804xrom.c: convert pci_module_init()
    
    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 at stusta.de>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/ck804xrom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c
index 3d4a4d8..688ef49 100644
--- a/drivers/mtd/maps/ck804xrom.c
+++ b/drivers/mtd/maps/ck804xrom.c
@@ -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
 }
 



More information about the linux-mtd-cvs mailing list