diff options
-rw-r--r-- | arch/mips/au1000/common/platform.c | 6 | ||||
-rw-r--r-- | arch/mips/au1000/common/setup.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/au1000_generic.c | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/arch/mips/au1000/common/platform.c b/arch/mips/au1000/common/platform.c index 4aca18f0e290..a5e3ea413694 100644 --- a/arch/mips/au1000/common/platform.c +++ b/arch/mips/au1000/common/platform.c | |||
@@ -209,8 +209,14 @@ static struct platform_device au1200_ide0_device = { | |||
209 | 209 | ||
210 | #endif | 210 | #endif |
211 | 211 | ||
212 | static struct platform_device au1x00_pcmcia_device = { | ||
213 | .name = "au1x00-pcmcia", | ||
214 | .id = 0, | ||
215 | }; | ||
216 | |||
212 | static struct platform_device *au1xxx_platform_devices[] __initdata = { | 217 | static struct platform_device *au1xxx_platform_devices[] __initdata = { |
213 | &au1xxx_usb_ohci_device, | 218 | &au1xxx_usb_ohci_device, |
219 | &au1x00_pcmcia_device, | ||
214 | #ifdef CONFIG_FB_AU1100 | 220 | #ifdef CONFIG_FB_AU1100 |
215 | &au1100_lcd_device, | 221 | &au1100_lcd_device, |
216 | #endif | 222 | #endif |
diff --git a/arch/mips/au1000/common/setup.c b/arch/mips/au1000/common/setup.c index c1e102e55adb..1ef15d5ef943 100644 --- a/arch/mips/au1000/common/setup.c +++ b/arch/mips/au1000/common/setup.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/mm.h> | 32 | #include <linux/mm.h> |
33 | #include <linux/delay.h> | 33 | #include <linux/delay.h> |
34 | #include <linux/interrupt.h> | 34 | #include <linux/interrupt.h> |
35 | #include <linux/module.h> | ||
35 | 36 | ||
36 | #include <asm/cpu.h> | 37 | #include <asm/cpu.h> |
37 | #include <asm/bootinfo.h> | 38 | #include <asm/bootinfo.h> |
@@ -186,4 +187,5 @@ phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) | |||
186 | /* default nop */ | 187 | /* default nop */ |
187 | return phys_addr; | 188 | return phys_addr; |
188 | } | 189 | } |
190 | EXPORT_SYMBOL(__fixup_bigphys_addr); | ||
189 | #endif | 191 | #endif |
diff --git a/drivers/pcmcia/au1000_generic.c b/drivers/pcmcia/au1000_generic.c index d90a634cebf5..ba48cef3a9dc 100644 --- a/drivers/pcmcia/au1000_generic.c +++ b/drivers/pcmcia/au1000_generic.c | |||
@@ -490,7 +490,7 @@ int au1x00_drv_pcmcia_remove(struct device *dev) | |||
490 | flush_scheduled_work(); | 490 | flush_scheduled_work(); |
491 | skt->ops->hw_shutdown(skt); | 491 | skt->ops->hw_shutdown(skt); |
492 | au1x00_pcmcia_config_skt(skt, &dead_socket); | 492 | au1x00_pcmcia_config_skt(skt, &dead_socket); |
493 | iounmap(skt->virt_io); | 493 | iounmap(skt->virt_io + (u32)mips_io_port_base); |
494 | skt->virt_io = NULL; | 494 | skt->virt_io = NULL; |
495 | } | 495 | } |
496 | 496 | ||
@@ -528,10 +528,6 @@ static struct device_driver au1x00_pcmcia_driver = { | |||
528 | .resume = pcmcia_socket_dev_resume, | 528 | .resume = pcmcia_socket_dev_resume, |
529 | }; | 529 | }; |
530 | 530 | ||
531 | static struct platform_device au1x00_device = { | ||
532 | .name = "au1x00-pcmcia", | ||
533 | .id = 0, | ||
534 | }; | ||
535 | 531 | ||
536 | /* au1x00_pcmcia_init() | 532 | /* au1x00_pcmcia_init() |
537 | * | 533 | * |
@@ -545,7 +541,6 @@ static int __init au1x00_pcmcia_init(void) | |||
545 | int error = 0; | 541 | int error = 0; |
546 | if ((error = driver_register(&au1x00_pcmcia_driver))) | 542 | if ((error = driver_register(&au1x00_pcmcia_driver))) |
547 | return error; | 543 | return error; |
548 | platform_device_register(&au1x00_device); | ||
549 | return error; | 544 | return error; |
550 | } | 545 | } |
551 | 546 | ||
@@ -556,7 +551,6 @@ static int __init au1x00_pcmcia_init(void) | |||
556 | static void __exit au1x00_pcmcia_exit(void) | 551 | static void __exit au1x00_pcmcia_exit(void) |
557 | { | 552 | { |
558 | driver_unregister(&au1x00_pcmcia_driver); | 553 | driver_unregister(&au1x00_pcmcia_driver); |
559 | platform_device_unregister(&au1x00_device); | ||
560 | } | 554 | } |
561 | 555 | ||
562 | module_init(au1x00_pcmcia_init); | 556 | module_init(au1x00_pcmcia_init); |