Commit b42897ce authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] ide: small cleanup for sis5513

Sigh, Thomas Gleixner pointed out that his
sis5518 fix didn't need forward porting.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8a690d16
......@@ -954,31 +954,25 @@ static void __init init_hwif_sis5513 (ide_hwif_t *hwif)
return;
}
#define DECLARE_SIS_DEV(name_str) \
{ \
.name = name_str, \
.init_chipset = init_chipset_sis5513, \
.init_hwif = init_hwif_sis5513, \
.channels = 2, \
.autodma = NOAUTODMA, \
.enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, \
.bootable = ON_BOARD, \
}
static ide_pci_device_t sis5513_chipsets[] __devinitdata = {
/* 0 */ DECLARE_SIS_DEV("SIS5513"),
/* 1 */ DECLARE_SIS_DEV("SIS5518")
static ide_pci_device_t sis5513_chipset __devinitdata = {
.name = "SIS5513",
.init_chipset = init_chipset_sis5513,
.init_hwif = init_hwif_sis5513,
.channels = 2,
.autodma = NOAUTODMA,
.enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}},
.bootable = ON_BOARD,
};
static int __devinit sis5513_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
ide_setup_pci_device(dev, &sis5513_chipsets[id->driver_data]);
ide_setup_pci_device(dev, &sis5513_chipset);
return 0;
}
static struct pci_device_id sis5513_pci_tbl[] = {
{ PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5513, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{ PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5518, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1},
{ PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5518, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{ 0, },
};
MODULE_DEVICE_TABLE(pci, sis5513_pci_tbl);
......
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