diff options
Diffstat (limited to 'drivers/ide/arm')
-rw-r--r-- | drivers/ide/arm/icside.c | 6 | ||||
-rw-r--r-- | drivers/ide/arm/palm_bk3710.c | 9 | ||||
-rw-r--r-- | drivers/ide/arm/rapide.c | 6 |
3 files changed, 18 insertions, 3 deletions
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c index f575e8341aec..df4af4083954 100644 --- a/drivers/ide/arm/icside.c +++ b/drivers/ide/arm/icside.c | |||
@@ -710,8 +710,14 @@ static int __init icside_init(void) | |||
710 | return ecard_register_driver(&icside_driver); | 710 | return ecard_register_driver(&icside_driver); |
711 | } | 711 | } |
712 | 712 | ||
713 | static void __exit icside_exit(void); | ||
714 | { | ||
715 | ecard_unregister_driver(&icside_driver); | ||
716 | } | ||
717 | |||
713 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); | 718 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); |
714 | MODULE_LICENSE("GPL"); | 719 | MODULE_LICENSE("GPL"); |
715 | MODULE_DESCRIPTION("ICS IDE driver"); | 720 | MODULE_DESCRIPTION("ICS IDE driver"); |
716 | 721 | ||
717 | module_init(icside_init); | 722 | module_init(icside_init); |
723 | module_exit(icside_exit); | ||
diff --git a/drivers/ide/arm/palm_bk3710.c b/drivers/ide/arm/palm_bk3710.c index 65bb4b8fd570..3e842d60eae9 100644 --- a/drivers/ide/arm/palm_bk3710.c +++ b/drivers/ide/arm/palm_bk3710.c | |||
@@ -82,6 +82,7 @@ static const struct palm_bk3710_udmatiming palm_bk3710_udmatimings[6] = { | |||
82 | {100, 120}, /* UDMA Mode 2 */ | 82 | {100, 120}, /* UDMA Mode 2 */ |
83 | {100, 90}, /* UDMA Mode 3 */ | 83 | {100, 90}, /* UDMA Mode 3 */ |
84 | {100, 60}, /* UDMA Mode 4 */ | 84 | {100, 60}, /* UDMA Mode 4 */ |
85 | {85, 40}, /* UDMA Mode 5 */ | ||
85 | }; | 86 | }; |
86 | 87 | ||
87 | static void palm_bk3710_setudmamode(void __iomem *base, unsigned int dev, | 88 | static void palm_bk3710_setudmamode(void __iomem *base, unsigned int dev, |
@@ -334,12 +335,11 @@ static const struct ide_port_ops palm_bk3710_ports_ops = { | |||
334 | .cable_detect = palm_bk3710_cable_detect, | 335 | .cable_detect = palm_bk3710_cable_detect, |
335 | }; | 336 | }; |
336 | 337 | ||
337 | static const struct ide_port_info __devinitdata palm_bk3710_port_info = { | 338 | static struct ide_port_info __devinitdata palm_bk3710_port_info = { |
338 | .init_dma = palm_bk3710_init_dma, | 339 | .init_dma = palm_bk3710_init_dma, |
339 | .port_ops = &palm_bk3710_ports_ops, | 340 | .port_ops = &palm_bk3710_ports_ops, |
340 | .host_flags = IDE_HFLAG_MMIO, | 341 | .host_flags = IDE_HFLAG_MMIO, |
341 | .pio_mask = ATA_PIO4, | 342 | .pio_mask = ATA_PIO4, |
342 | .udma_mask = ATA_UDMA4, /* (input clk 99MHz) */ | ||
343 | .mwdma_mask = ATA_MWDMA2, | 343 | .mwdma_mask = ATA_MWDMA2, |
344 | }; | 344 | }; |
345 | 345 | ||
@@ -352,7 +352,7 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev) | |||
352 | int i, rc; | 352 | int i, rc; |
353 | hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; | 353 | hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; |
354 | 354 | ||
355 | clk = clk_get(NULL, "IDECLK"); | 355 | clk = clk_get(&pdev->dev, "IDECLK"); |
356 | if (IS_ERR(clk)) | 356 | if (IS_ERR(clk)) |
357 | return -ENODEV; | 357 | return -ENODEV; |
358 | 358 | ||
@@ -392,6 +392,9 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev) | |||
392 | hw.irq = irq->start; | 392 | hw.irq = irq->start; |
393 | hw.chipset = ide_palm3710; | 393 | hw.chipset = ide_palm3710; |
394 | 394 | ||
395 | palm_bk3710_port_info.udma_mask = rate < 100000000 ? ATA_UDMA4 : | ||
396 | ATA_UDMA5; | ||
397 | |||
395 | rc = ide_host_add(&palm_bk3710_port_info, hws, NULL); | 398 | rc = ide_host_add(&palm_bk3710_port_info, hws, NULL); |
396 | if (rc) | 399 | if (rc) |
397 | goto out; | 400 | goto out; |
diff --git a/drivers/ide/arm/rapide.c b/drivers/ide/arm/rapide.c index 2bdd8b734afb..78d27d9ae430 100644 --- a/drivers/ide/arm/rapide.c +++ b/drivers/ide/arm/rapide.c | |||
@@ -95,7 +95,13 @@ static int __init rapide_init(void) | |||
95 | return ecard_register_driver(&rapide_driver); | 95 | return ecard_register_driver(&rapide_driver); |
96 | } | 96 | } |
97 | 97 | ||
98 | static void __exit rapide_exit(void) | ||
99 | { | ||
100 | ecard_unregister_driver(&rapide_driver); | ||
101 | } | ||
102 | |||
98 | MODULE_LICENSE("GPL"); | 103 | MODULE_LICENSE("GPL"); |
99 | MODULE_DESCRIPTION("Yellowstone RAPIDE driver"); | 104 | MODULE_DESCRIPTION("Yellowstone RAPIDE driver"); |
100 | 105 | ||
101 | module_init(rapide_init); | 106 | module_init(rapide_init); |
107 | module_exit(rapide_exit); | ||