diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:24 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:24 -0500 |
commit | 7b77d864af29c193f6cee8338dbda40accb9b27b (patch) | |
tree | 920f8605b26f11d520264bb8ab6faf2bffc1d162 /drivers/ide/pci/sgiioc4.c | |
parent | c1607e1af238b823a2158a18ff6c89144ce38c6c (diff) |
ide: remove ide_pci_device_t tables with only one entry
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/sgiioc4.c')
-rw-r--r-- | drivers/ide/pci/sgiioc4.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/ide/pci/sgiioc4.c b/drivers/ide/pci/sgiioc4.c index b0bf01809279..81d44ed37f34 100644 --- a/drivers/ide/pci/sgiioc4.c +++ b/drivers/ide/pci/sgiioc4.c | |||
@@ -729,8 +729,7 @@ out: | |||
729 | return ret; | 729 | return ret; |
730 | } | 730 | } |
731 | 731 | ||
732 | static ide_pci_device_t sgiioc4_chipsets[] __devinitdata = { | 732 | static ide_pci_device_t sgiioc4_chipset __devinitdata = { |
733 | { | ||
734 | /* Channel 0 */ | 733 | /* Channel 0 */ |
735 | .name = "SGIIOC4", | 734 | .name = "SGIIOC4", |
736 | .init_hwif = ide_init_sgiioc4, | 735 | .init_hwif = ide_init_sgiioc4, |
@@ -739,7 +738,6 @@ static ide_pci_device_t sgiioc4_chipsets[] __devinitdata = { | |||
739 | .autodma = AUTODMA, | 738 | .autodma = AUTODMA, |
740 | /* SGI IOC4 doesn't have enablebits. */ | 739 | /* SGI IOC4 doesn't have enablebits. */ |
741 | .bootable = ON_BOARD, | 740 | .bootable = ON_BOARD, |
742 | } | ||
743 | }; | 741 | }; |
744 | 742 | ||
745 | int | 743 | int |
@@ -751,8 +749,7 @@ ioc4_ide_attach_one(struct ioc4_driver_data *idd) | |||
751 | if (idd->idd_variant == IOC4_VARIANT_PCI_RT) | 749 | if (idd->idd_variant == IOC4_VARIANT_PCI_RT) |
752 | return 0; | 750 | return 0; |
753 | 751 | ||
754 | return pci_init_sgiioc4(idd->idd_pdev, | 752 | return pci_init_sgiioc4(idd->idd_pdev, &sgiioc4_chipset); |
755 | &sgiioc4_chipsets[idd->idd_pci_id->driver_data]); | ||
756 | } | 753 | } |
757 | 754 | ||
758 | static struct ioc4_submodule ioc4_ide_submodule = { | 755 | static struct ioc4_submodule ioc4_ide_submodule = { |