diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 23:53:06 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 08:43:37 -0500 |
commit | 5d95f8e2dd263f3e05ae4bf9a3309552363e13af (patch) | |
tree | 547831149fd437068b919256d4a6f7e36ddc2926 /drivers/pcmcia/pxa2xx_viper.c | |
parent | d571c79e86fa7704265b9127403a78ccd3c01729 (diff) |
pcmcia: convert drivers/pcmcia/* to use module_platform_driver()
This patch converts the drivers in drivers/pcmcia/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Marc Zyngier <maz@misterjones.org> [for the viper part]
Acked-by: Manuel Lauss <manuel.lauss@googlemail.com> [for the db1xxx_ss.c part]
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_viper.c')
-rw-r--r-- | drivers/pcmcia/pxa2xx_viper.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/pcmcia/pxa2xx_viper.c b/drivers/pcmcia/pxa2xx_viper.c index 1064b1c2869d..44f5c7fc9b6f 100644 --- a/drivers/pcmcia/pxa2xx_viper.c +++ b/drivers/pcmcia/pxa2xx_viper.c | |||
@@ -204,18 +204,7 @@ static struct platform_driver viper_pcmcia_driver = { | |||
204 | .id_table = viper_pcmcia_id_table, | 204 | .id_table = viper_pcmcia_id_table, |
205 | }; | 205 | }; |
206 | 206 | ||
207 | static int __init viper_pcmcia_init(void) | 207 | module_platform_driver(viper_pcmcia_driver); |
208 | { | ||
209 | return platform_driver_register(&viper_pcmcia_driver); | ||
210 | } | ||
211 | |||
212 | static void __exit viper_pcmcia_exit(void) | ||
213 | { | ||
214 | return platform_driver_unregister(&viper_pcmcia_driver); | ||
215 | } | ||
216 | |||
217 | module_init(viper_pcmcia_init); | ||
218 | module_exit(viper_pcmcia_exit); | ||
219 | 208 | ||
220 | MODULE_DEVICE_TABLE(platform, viper_pcmcia_id_table); | 209 | MODULE_DEVICE_TABLE(platform, viper_pcmcia_id_table); |
221 | MODULE_LICENSE("GPL"); | 210 | MODULE_LICENSE("GPL"); |