diff options
| author | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
| commit | 49997d75152b3d23c53b0fa730599f2f74c92c65 (patch) | |
| tree | 46e93126170d02cfec9505172e545732c1b69656 /drivers/ide/legacy/ide-cs.c | |
| parent | a0c80b80e0fb48129e4e9d6a9ede914f9ff1850d (diff) | |
| parent | 5b664cb235e97afbf34db9c4d77f08ebd725335e (diff) | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
Documentation/powerpc/booting-without-of.txt
drivers/atm/Makefile
drivers/net/fs_enet/fs_enet-main.c
drivers/pci/pci-acpi.c
net/8021q/vlan.c
net/iucv/iucv.c
Diffstat (limited to 'drivers/ide/legacy/ide-cs.c')
| -rw-r--r-- | drivers/ide/legacy/ide-cs.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/ide/legacy/ide-cs.c b/drivers/ide/legacy/ide-cs.c index 3381424d70a1..27b1e0b7ecb4 100644 --- a/drivers/ide/legacy/ide-cs.c +++ b/drivers/ide/legacy/ide-cs.c | |||
| @@ -63,11 +63,9 @@ MODULE_LICENSE("Dual MPL/GPL"); | |||
| 63 | 63 | ||
| 64 | #define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0) | 64 | #define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0) |
| 65 | 65 | ||
| 66 | #ifdef PCMCIA_DEBUG | 66 | #ifdef CONFIG_PCMCIA_DEBUG |
| 67 | INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG); | 67 | INT_MODULE_PARM(pc_debug, 0); |
| 68 | #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args) | 68 | #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args) |
| 69 | static char *version = | ||
| 70 | "ide-cs.c 1.3 2002/10/26 05:45:31 (David Hinds)"; | ||
| 71 | #else | 69 | #else |
| 72 | #define DEBUG(n, args...) | 70 | #define DEBUG(n, args...) |
| 73 | #endif | 71 | #endif |
| @@ -154,6 +152,11 @@ static const struct ide_port_ops idecs_port_ops = { | |||
| 154 | .quirkproc = ide_undecoded_slave, | 152 | .quirkproc = ide_undecoded_slave, |
| 155 | }; | 153 | }; |
| 156 | 154 | ||
| 155 | static const struct ide_port_info idecs_port_info = { | ||
| 156 | .port_ops = &idecs_port_ops, | ||
| 157 | .host_flags = IDE_HFLAG_NO_DMA, | ||
| 158 | }; | ||
| 159 | |||
| 157 | static ide_hwif_t *idecs_register(unsigned long io, unsigned long ctl, | 160 | static ide_hwif_t *idecs_register(unsigned long io, unsigned long ctl, |
| 158 | unsigned long irq, struct pcmcia_device *handle) | 161 | unsigned long irq, struct pcmcia_device *handle) |
| 159 | { | 162 | { |
| @@ -187,13 +190,11 @@ static ide_hwif_t *idecs_register(unsigned long io, unsigned long ctl, | |||
| 187 | 190 | ||
| 188 | i = hwif->index; | 191 | i = hwif->index; |
| 189 | 192 | ||
| 190 | ide_init_port_data(hwif, i); | ||
| 191 | ide_init_port_hw(hwif, &hw); | 193 | ide_init_port_hw(hwif, &hw); |
| 192 | hwif->port_ops = &idecs_port_ops; | ||
| 193 | 194 | ||
| 194 | idx[0] = i; | 195 | idx[0] = i; |
| 195 | 196 | ||
| 196 | ide_device_add(idx, NULL); | 197 | ide_device_add(idx, &idecs_port_info); |
| 197 | 198 | ||
| 198 | if (hwif->present) | 199 | if (hwif->present) |
| 199 | return hwif; | 200 | return hwif; |
| @@ -375,7 +376,7 @@ failed: | |||
| 375 | 376 | ||
| 376 | ======================================================================*/ | 377 | ======================================================================*/ |
| 377 | 378 | ||
| 378 | void ide_release(struct pcmcia_device *link) | 379 | static void ide_release(struct pcmcia_device *link) |
| 379 | { | 380 | { |
| 380 | ide_info_t *info = link->priv; | 381 | ide_info_t *info = link->priv; |
| 381 | ide_hwif_t *hwif = info->hwif; | 382 | ide_hwif_t *hwif = info->hwif; |
