aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-24 16:53:32 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-24 16:53:32 -0400
commit29f1ca920cb8d65b979f7edf2fc7d11095461306 (patch)
treeda394d1ecc8c44062a829e0cb7b5877773909b89 /drivers/ide
parent28cfd8af52a9ed4e5bd1751ea6bc0b8c870f68ec (diff)
it8213: remove DECLARE_ITE_DEV() macro
While at it: * it8213_chipsets[] -> it8213_chipset. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/pci/it8213.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/drivers/ide/pci/it8213.c b/drivers/ide/pci/it8213.c
index 575bf2386f8e..451b87fd8217 100644
--- a/drivers/ide/pci/it8213.c
+++ b/drivers/ide/pci/it8213.c
@@ -155,23 +155,17 @@ static const struct ide_port_ops it8213_port_ops = {
155 .cable_detect = it8213_cable_detect, 155 .cable_detect = it8213_cable_detect,
156}; 156};
157 157
158#define DECLARE_ITE_DEV(name_str) \ 158static const struct ide_port_info it8213_chipset __devinitdata = {
159 { \ 159 .name = "IT8213",
160 .name = name_str, \ 160 .enablebits = { {0x41, 0x80, 0x80} },
161 .enablebits = { {0x41, 0x80, 0x80} }, \ 161 .port_ops = &it8213_port_ops,
162 .port_ops = &it8213_port_ops, \ 162 .host_flags = IDE_HFLAG_SINGLE,
163 .host_flags = IDE_HFLAG_SINGLE, \ 163 .pio_mask = ATA_PIO4,
164 .pio_mask = ATA_PIO4, \ 164 .swdma_mask = ATA_SWDMA2_ONLY,
165 .swdma_mask = ATA_SWDMA2_ONLY, \ 165 .mwdma_mask = ATA_MWDMA12_ONLY,
166 .mwdma_mask = ATA_MWDMA12_ONLY, \ 166 .udma_mask = ATA_UDMA6,
167 .udma_mask = ATA_UDMA6, \
168 }
169
170static const struct ide_port_info it8213_chipsets[] __devinitdata = {
171 /* 0 */ DECLARE_ITE_DEV("IT8213"),
172}; 167};
173 168
174
175/** 169/**
176 * it8213_init_one - pci layer discovery entry 170 * it8213_init_one - pci layer discovery entry
177 * @dev: PCI device 171 * @dev: PCI device
@@ -184,7 +178,7 @@ static const struct ide_port_info it8213_chipsets[] __devinitdata = {
184 178
185static int __devinit it8213_init_one(struct pci_dev *dev, const struct pci_device_id *id) 179static int __devinit it8213_init_one(struct pci_dev *dev, const struct pci_device_id *id)
186{ 180{
187 return ide_pci_init_one(dev, &it8213_chipsets[id->driver_data], NULL); 181 return ide_pci_init_one(dev, &it8213_chipset, NULL);
188} 182}
189 183
190static const struct pci_device_id it8213_pci_tbl[] = { 184static const struct pci_device_id it8213_pci_tbl[] = {