it821x: remove DECLARE_ITE_DEV() macro

While at it:

* it821x_chipsets[] -> it821x_chipset.

* Fix it821x_chipset's name field (as it is used for IT8211/8212).
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 29f1ca92
...@@ -628,17 +628,12 @@ static const struct ide_port_ops it821x_port_ops = { ...@@ -628,17 +628,12 @@ static const struct ide_port_ops it821x_port_ops = {
.cable_detect = it821x_cable_detect, .cable_detect = it821x_cable_detect,
}; };
#define DECLARE_ITE_DEV(name_str) \ static const struct ide_port_info it821x_chipset __devinitdata = {
{ \ .name = "IT821X",
.name = name_str, \ .init_chipset = init_chipset_it821x,
.init_chipset = init_chipset_it821x, \ .init_hwif = init_hwif_it821x,
.init_hwif = init_hwif_it821x, \ .port_ops = &it821x_port_ops,
.port_ops = &it821x_port_ops, \ .pio_mask = ATA_PIO4,
.pio_mask = ATA_PIO4, \
}
static const struct ide_port_info it821x_chipsets[] __devinitdata = {
/* 0 */ DECLARE_ITE_DEV("IT8212"),
}; };
/** /**
...@@ -661,7 +656,7 @@ static int __devinit it821x_init_one(struct pci_dev *dev, const struct pci_devic ...@@ -661,7 +656,7 @@ static int __devinit it821x_init_one(struct pci_dev *dev, const struct pci_devic
return -ENOMEM; return -ENOMEM;
} }
rc = ide_pci_init_one(dev, &it821x_chipsets[id->driver_data], itdevs); rc = ide_pci_init_one(dev, &it821x_chipset, itdevs);
if (rc) if (rc)
kfree(itdevs); kfree(itdevs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment