diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-06-28 07:27:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-28 17:59:07 -0400 |
commit | f201f5046ddaeeccb036bdf6848549bf5cb51bb1 (patch) | |
tree | 5944310bd67382bbbc6a3998e0d152a194834404 /drivers/ide/pci/aec62xx.c | |
parent | da574af755bcb1d604e01feadf2a8c31b364447c (diff) |
[PATCH] ide: housekeeping on IDE drivers
Move auto arrays to static (const). Clean up using PCI_DEVICE in places,
remove unreachable junk and dead code.
Fix the serverworks cable detect logic (if ordering is wrong). Backport
from libata. Plenty of scope for more cleanup left.
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ide/pci/aec62xx.c')
-rw-r--r-- | drivers/ide/pci/aec62xx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/ide/pci/aec62xx.c b/drivers/ide/pci/aec62xx.c index c743e68c33aa..ff0cdc142f17 100644 --- a/drivers/ide/pci/aec62xx.c +++ b/drivers/ide/pci/aec62xx.c | |||
@@ -22,7 +22,7 @@ struct chipset_bus_clock_list_entry { | |||
22 | u8 ultra_settings; | 22 | u8 ultra_settings; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | static struct chipset_bus_clock_list_entry aec6xxx_33_base [] = { | 25 | static const struct chipset_bus_clock_list_entry aec6xxx_33_base [] = { |
26 | { XFER_UDMA_6, 0x31, 0x07 }, | 26 | { XFER_UDMA_6, 0x31, 0x07 }, |
27 | { XFER_UDMA_5, 0x31, 0x06 }, | 27 | { XFER_UDMA_5, 0x31, 0x06 }, |
28 | { XFER_UDMA_4, 0x31, 0x05 }, | 28 | { XFER_UDMA_4, 0x31, 0x05 }, |
@@ -42,7 +42,7 @@ static struct chipset_bus_clock_list_entry aec6xxx_33_base [] = { | |||
42 | { 0, 0x00, 0x00 } | 42 | { 0, 0x00, 0x00 } |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static struct chipset_bus_clock_list_entry aec6xxx_34_base [] = { | 45 | static const struct chipset_bus_clock_list_entry aec6xxx_34_base [] = { |
46 | { XFER_UDMA_6, 0x41, 0x06 }, | 46 | { XFER_UDMA_6, 0x41, 0x06 }, |
47 | { XFER_UDMA_5, 0x41, 0x05 }, | 47 | { XFER_UDMA_5, 0x41, 0x05 }, |
48 | { XFER_UDMA_4, 0x41, 0x04 }, | 48 | { XFER_UDMA_4, 0x41, 0x04 }, |
@@ -425,12 +425,12 @@ static int __devinit aec62xx_init_one(struct pci_dev *dev, const struct pci_devi | |||
425 | return d->init_setup(dev, d); | 425 | return d->init_setup(dev, d); |
426 | } | 426 | } |
427 | 427 | ||
428 | static struct pci_device_id aec62xx_pci_tbl[] = { | 428 | static const struct pci_device_id aec62xx_pci_tbl[] = { |
429 | { PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP850UF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 429 | { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP850UF), 0 }, |
430 | { PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP860, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, | 430 | { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP860), 1 }, |
431 | { PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP860R, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2 }, | 431 | { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP860R), 2 }, |
432 | { PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP865, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 3 }, | 432 | { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP865), 3 }, |
433 | { PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP865R, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4 }, | 433 | { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, PCI_DEVICE_ID_ARTOP_ATP865R), 4 }, |
434 | { 0, }, | 434 | { 0, }, |
435 | }; | 435 | }; |
436 | MODULE_DEVICE_TABLE(pci, aec62xx_pci_tbl); | 436 | MODULE_DEVICE_TABLE(pci, aec62xx_pci_tbl); |