diff options
Diffstat (limited to 'drivers/pcmcia/m8xx_pcmcia.c')
-rw-r--r-- | drivers/pcmcia/m8xx_pcmcia.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c index f0ecad99ce81..271a590a5f3c 100644 --- a/drivers/pcmcia/m8xx_pcmcia.c +++ b/drivers/pcmcia/m8xx_pcmcia.c | |||
@@ -59,7 +59,6 @@ | |||
59 | #include <asm/irq.h> | 59 | #include <asm/irq.h> |
60 | #include <asm/fs_pd.h> | 60 | #include <asm/fs_pd.h> |
61 | 61 | ||
62 | #include <pcmcia/cs.h> | ||
63 | #include <pcmcia/ss.h> | 62 | #include <pcmcia/ss.h> |
64 | 63 | ||
65 | #define pcmcia_info(args...) printk(KERN_INFO "m8xx_pcmcia: "args) | 64 | #define pcmcia_info(args...) printk(KERN_INFO "m8xx_pcmcia: "args) |
@@ -1149,8 +1148,7 @@ static struct pccard_operations m8xx_services = { | |||
1149 | .set_mem_map = m8xx_set_mem_map, | 1148 | .set_mem_map = m8xx_set_mem_map, |
1150 | }; | 1149 | }; |
1151 | 1150 | ||
1152 | static int __init m8xx_probe(struct platform_device *ofdev, | 1151 | static int __init m8xx_probe(struct platform_device *ofdev) |
1153 | const struct of_device_id *match) | ||
1154 | { | 1152 | { |
1155 | struct pcmcia_win *w; | 1153 | struct pcmcia_win *w; |
1156 | unsigned int i, m, hwirq; | 1154 | unsigned int i, m, hwirq; |
@@ -1199,7 +1197,7 @@ static int __init m8xx_probe(struct platform_device *ofdev, | |||
1199 | out_be32(M8XX_PGCRX(1), | 1197 | out_be32(M8XX_PGCRX(1), |
1200 | M8XX_PGCRX_CXOE | (mk_int_int_mask(hwirq) << 16)); | 1198 | M8XX_PGCRX_CXOE | (mk_int_int_mask(hwirq) << 16)); |
1201 | 1199 | ||
1202 | /* intialize the fixed memory windows */ | 1200 | /* initialize the fixed memory windows */ |
1203 | 1201 | ||
1204 | for (i = 0; i < PCMCIA_SOCKETS_NO; i++) { | 1202 | for (i = 0; i < PCMCIA_SOCKETS_NO; i++) { |
1205 | for (m = 0; m < PCMCIA_MEM_WIN_NO; m++) { | 1203 | for (m = 0; m < PCMCIA_MEM_WIN_NO; m++) { |
@@ -1296,7 +1294,7 @@ static const struct of_device_id m8xx_pcmcia_match[] = { | |||
1296 | 1294 | ||
1297 | MODULE_DEVICE_TABLE(of, m8xx_pcmcia_match); | 1295 | MODULE_DEVICE_TABLE(of, m8xx_pcmcia_match); |
1298 | 1296 | ||
1299 | static struct of_platform_driver m8xx_pcmcia_driver = { | 1297 | static struct platform_driver m8xx_pcmcia_driver = { |
1300 | .driver = { | 1298 | .driver = { |
1301 | .name = driver_name, | 1299 | .name = driver_name, |
1302 | .owner = THIS_MODULE, | 1300 | .owner = THIS_MODULE, |
@@ -1308,12 +1306,12 @@ static struct of_platform_driver m8xx_pcmcia_driver = { | |||
1308 | 1306 | ||
1309 | static int __init m8xx_init(void) | 1307 | static int __init m8xx_init(void) |
1310 | { | 1308 | { |
1311 | return of_register_platform_driver(&m8xx_pcmcia_driver); | 1309 | return platform_driver_register(&m8xx_pcmcia_driver); |
1312 | } | 1310 | } |
1313 | 1311 | ||
1314 | static void __exit m8xx_exit(void) | 1312 | static void __exit m8xx_exit(void) |
1315 | { | 1313 | { |
1316 | of_unregister_platform_driver(&m8xx_pcmcia_driver); | 1314 | platform_driver_unregister(&m8xx_pcmcia_driver); |
1317 | } | 1315 | } |
1318 | 1316 | ||
1319 | module_init(m8xx_init); | 1317 | module_init(m8xx_init); |