diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-21 14:57:23 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-21 14:57:23 -0400 |
commit | 2bfba3c444fe8b2ab1c38112a89d8f03b61136ca (patch) | |
tree | 17580eee63d868c9d6b97a6bc956a08f25631532 /drivers/ide/arm/rapide.c | |
parent | 2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff) |
ide: remove useless subdirs from drivers/ide/
Suggested-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/arm/rapide.c')
-rw-r--r-- | drivers/ide/arm/rapide.c | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/drivers/ide/arm/rapide.c b/drivers/ide/arm/rapide.c deleted file mode 100644 index 78d27d9ae430..000000000000 --- a/drivers/ide/arm/rapide.c +++ /dev/null | |||
@@ -1,107 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 1996-2002 Russell King. | ||
3 | */ | ||
4 | |||
5 | #include <linux/module.h> | ||
6 | #include <linux/slab.h> | ||
7 | #include <linux/blkdev.h> | ||
8 | #include <linux/errno.h> | ||
9 | #include <linux/ide.h> | ||
10 | #include <linux/init.h> | ||
11 | |||
12 | #include <asm/ecard.h> | ||
13 | |||
14 | static struct const ide_port_info rapide_port_info = { | ||
15 | .host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA, | ||
16 | }; | ||
17 | |||
18 | static void rapide_setup_ports(hw_regs_t *hw, void __iomem *base, | ||
19 | void __iomem *ctrl, unsigned int sz, int irq) | ||
20 | { | ||
21 | unsigned long port = (unsigned long)base; | ||
22 | int i; | ||
23 | |||
24 | for (i = 0; i <= 7; i++) { | ||
25 | hw->io_ports_array[i] = port; | ||
26 | port += sz; | ||
27 | } | ||
28 | hw->io_ports.ctl_addr = (unsigned long)ctrl; | ||
29 | hw->irq = irq; | ||
30 | } | ||
31 | |||
32 | static int __devinit | ||
33 | rapide_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
34 | { | ||
35 | void __iomem *base; | ||
36 | struct ide_host *host; | ||
37 | int ret; | ||
38 | hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; | ||
39 | |||
40 | ret = ecard_request_resources(ec); | ||
41 | if (ret) | ||
42 | goto out; | ||
43 | |||
44 | base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); | ||
45 | if (!base) { | ||
46 | ret = -ENOMEM; | ||
47 | goto release; | ||
48 | } | ||
49 | |||
50 | memset(&hw, 0, sizeof(hw)); | ||
51 | rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq); | ||
52 | hw.chipset = ide_generic; | ||
53 | hw.dev = &ec->dev; | ||
54 | |||
55 | ret = ide_host_add(&rapide_port_info, hws, &host); | ||
56 | if (ret) | ||
57 | goto release; | ||
58 | |||
59 | ecard_set_drvdata(ec, host); | ||
60 | goto out; | ||
61 | |||
62 | release: | ||
63 | ecard_release_resources(ec); | ||
64 | out: | ||
65 | return ret; | ||
66 | } | ||
67 | |||
68 | static void __devexit rapide_remove(struct expansion_card *ec) | ||
69 | { | ||
70 | struct ide_host *host = ecard_get_drvdata(ec); | ||
71 | |||
72 | ecard_set_drvdata(ec, NULL); | ||
73 | |||
74 | ide_host_remove(host); | ||
75 | |||
76 | ecard_release_resources(ec); | ||
77 | } | ||
78 | |||
79 | static struct ecard_id rapide_ids[] = { | ||
80 | { MANU_YELLOWSTONE, PROD_YELLOWSTONE_RAPIDE32 }, | ||
81 | { 0xffff, 0xffff } | ||
82 | }; | ||
83 | |||
84 | static struct ecard_driver rapide_driver = { | ||
85 | .probe = rapide_probe, | ||
86 | .remove = __devexit_p(rapide_remove), | ||
87 | .id_table = rapide_ids, | ||
88 | .drv = { | ||
89 | .name = "rapide", | ||
90 | }, | ||
91 | }; | ||
92 | |||
93 | static int __init rapide_init(void) | ||
94 | { | ||
95 | return ecard_register_driver(&rapide_driver); | ||
96 | } | ||
97 | |||
98 | static void __exit rapide_exit(void) | ||
99 | { | ||
100 | ecard_unregister_driver(&rapide_driver); | ||
101 | } | ||
102 | |||
103 | MODULE_LICENSE("GPL"); | ||
104 | MODULE_DESCRIPTION("Yellowstone RAPIDE driver"); | ||
105 | |||
106 | module_init(rapide_init); | ||
107 | module_exit(rapide_exit); | ||