diff options
Diffstat (limited to 'drivers/mtd/devices/docg3.c')
-rw-r--r-- | drivers/mtd/devices/docg3.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 8510ccb9c6f0..3e1b0a0ef4db 100644 --- a/drivers/mtd/devices/docg3.c +++ b/drivers/mtd/devices/docg3.c | |||
@@ -123,7 +123,7 @@ static inline void doc_flash_address(struct docg3 *docg3, u8 addr) | |||
123 | doc_writeb(docg3, addr, DOC_FLASHADDRESS); | 123 | doc_writeb(docg3, addr, DOC_FLASHADDRESS); |
124 | } | 124 | } |
125 | 125 | ||
126 | static char const *part_probes[] = { "cmdlinepart", "saftlpart", NULL }; | 126 | static char const * const part_probes[] = { "cmdlinepart", "saftlpart", NULL }; |
127 | 127 | ||
128 | static int doc_register_readb(struct docg3 *docg3, int reg) | 128 | static int doc_register_readb(struct docg3 *docg3, int reg) |
129 | { | 129 | { |
@@ -2144,18 +2144,7 @@ static struct platform_driver g3_driver = { | |||
2144 | .remove = __exit_p(docg3_release), | 2144 | .remove = __exit_p(docg3_release), |
2145 | }; | 2145 | }; |
2146 | 2146 | ||
2147 | static int __init docg3_init(void) | 2147 | module_platform_driver_probe(g3_driver, docg3_probe); |
2148 | { | ||
2149 | return platform_driver_probe(&g3_driver, docg3_probe); | ||
2150 | } | ||
2151 | module_init(docg3_init); | ||
2152 | |||
2153 | |||
2154 | static void __exit docg3_exit(void) | ||
2155 | { | ||
2156 | platform_driver_unregister(&g3_driver); | ||
2157 | } | ||
2158 | module_exit(docg3_exit); | ||
2159 | 2148 | ||
2160 | MODULE_LICENSE("GPL"); | 2149 | MODULE_LICENSE("GPL"); |
2161 | MODULE_AUTHOR("Robert Jarzmik <robert.jarzmik@free.fr>"); | 2150 | MODULE_AUTHOR("Robert Jarzmik <robert.jarzmik@free.fr>"); |