===================================================================
@@ -201,7 +201,6 @@ static const struct ide_port_ops ali14xx
static const struct ide_port_info ali14xx_port_info = {
.name = DRV_NAME,
- .chipset = ide_ali14xx,
.port_ops = &ali14xx_port_ops,
.host_flags = IDE_HFLAG_NO_DMA,
.pio_mask = ATA_PIO4,
===================================================================
@@ -214,7 +214,6 @@ static const struct ide_port_info at91_i
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA | IDE_HFLAG_SINGLE |
IDE_HFLAG_NO_IO_32BIT | IDE_HFLAG_UNMASK_IRQS,
.pio_mask = ATA_PIO6,
- .chipset = ide_generic,
};
/*
===================================================================
@@ -498,7 +498,6 @@ static const struct ide_port_info au1xxx
#ifdef CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA
.mwdma_mask = ATA_MWDMA2,
#endif
- .chipset = ide_au1xxx,
};
static int au_ide_probe(struct platform_device *dev)
===================================================================
@@ -148,7 +148,6 @@ static const struct ide_port_info buddha
.port_ops = &buddha_port_ops,
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
- .chipset = ide_generic,
};
/*
===================================================================
@@ -687,7 +687,6 @@ static int pci_conf2(void)
}
static const struct ide_port_info cmd640_port_info __initdata = {
- .chipset = ide_cmd640,
.host_flags = IDE_HFLAG_SERIALIZE |
IDE_HFLAG_NO_DMA |
IDE_HFLAG_ABUSE_PREFETCH |
===================================================================
@@ -68,7 +68,6 @@ static const struct ide_port_info delkin
IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
.init_chipset = delkin_cb_init_chipset,
- .chipset = ide_pci,
};
static int __devinit
===================================================================
@@ -93,7 +93,6 @@ static const struct ide_port_ops dtc2278
static const struct ide_port_info dtc2278_port_info __initdata = {
.name = DRV_NAME,
- .chipset = ide_dtc2278,
.port_ops = &dtc2278_port_ops,
.host_flags = IDE_HFLAG_SERIALIZE |
IDE_HFLAG_NO_UNMASK_IRQS |
===================================================================
@@ -111,7 +111,6 @@ static const struct ide_port_info falcon
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_SERIALIZE |
IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
- .chipset = ide_generic,
};
static void __init falconide_setup_ports(struct ide_hw *hw)
===================================================================
@@ -115,7 +115,6 @@ static const struct ide_port_info gayle_
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_SERIALIZE |
IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
- .chipset = ide_generic,
};
/*
===================================================================
@@ -345,7 +345,6 @@ static const struct ide_port_ops ht6560b
static const struct ide_port_info ht6560b_port_info __initdata = {
.name = DRV_NAME,
- .chipset = ide_ht6560b,
.tp_ops = &ht6560b_tp_ops,
.port_ops = &ht6560b_port_ops,
.host_flags = IDE_HFLAG_SERIALIZE | /* is this needed? */
===================================================================
@@ -405,7 +405,6 @@ static void icside_setup_ports(struct id
static const struct ide_port_info icside_v5_port_info = {
.host_flags = IDE_HFLAG_NO_DMA,
- .chipset = ide_acorn,
};
static int __devinit
@@ -460,7 +459,6 @@ static const struct ide_port_info icside
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO,
.mwdma_mask = ATA_MWDMA2,
.swdma_mask = ATA_SWDMA2,
- .chipset = ide_acorn,
};
static int __devinit
===================================================================
@@ -25,7 +25,6 @@ static const struct ide_port_info ide_4d
.port_ops = &ide_4drives_port_ops,
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_NO_DMA |
IDE_HFLAG_4DRIVES,
- .chipset = ide_4drives,
};
static int __init ide_4drives_init(void)
===================================================================
@@ -147,7 +147,6 @@ static const struct ide_port_info idecs_
.port_ops = &idecs_port_ops,
.host_flags = IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
- .chipset = ide_pci,
};
static struct ide_host *idecs_register(unsigned long io, unsigned long ctl,
===================================================================
@@ -331,7 +331,7 @@ u8 ide_find_dma_mode(ide_drive_t *drive,
}
}
- if (hwif->chipset == ide_acorn && mode == 0) {
+ if (!strcmp(hwif->dev->driver->name, "icside") && mode == 0) {
/*
* is this correct?
*/
===================================================================
@@ -29,7 +29,6 @@ MODULE_PARM_DESC(probe_mask, "probe mask
static const struct ide_port_info ide_generic_port_info = {
.host_flags = IDE_HFLAG_NO_DMA,
- .chipset = ide_generic,
};
#ifdef CONFIG_ARM
===================================================================
@@ -78,7 +78,6 @@ static inline void hw_setup(struct ide_h
static const struct ide_port_info h8300_port_info = {
.tp_ops = &h8300_tp_ops,
.host_flags = IDE_HFLAG_NO_IO_32BIT | IDE_HFLAG_NO_DMA,
- .chipset = ide_generic,
};
static int __init h8300_ide_init(void)
===================================================================
@@ -29,7 +29,6 @@ static struct pnp_device_id idepnp_devic
static const struct ide_port_info ide_pnp_port_info = {
.host_flags = IDE_HFLAG_NO_DMA,
- .chipset = ide_generic,
};
static int idepnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
===================================================================
@@ -1054,8 +1054,6 @@ static void ide_init_port(ide_hwif_t *hw
{
hwif->channel = port;
- hwif->chipset = d->chipset ? d->chipset : ide_pci;
-
if (d->init_iops)
d->init_iops(hwif);
===================================================================
@@ -44,7 +44,6 @@ static void __devinit plat_ide_setup_por
static const struct ide_port_info platform_ide_port_info = {
.host_flags = IDE_HFLAG_NO_DMA,
- .chipset = ide_generic,
};
static int __devinit plat_ide_probe(struct platform_device *pdev)
===================================================================
@@ -89,7 +89,6 @@ static const struct ide_port_info macide
.port_ops = &macide_port_ops,
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
- .chipset = ide_generic,
};
static const char *mac_ide_name[] =
===================================================================
@@ -305,7 +305,6 @@ static struct ide_port_info __devinitdat
.host_flags = IDE_HFLAG_MMIO,
.pio_mask = ATA_PIO4,
.mwdma_mask = ATA_MWDMA2,
- .chipset = ide_palm3710,
};
static int __init palm_bk3710_probe(struct platform_device *pdev)
===================================================================
@@ -1006,7 +1006,6 @@ static const struct ide_dma_ops pmac_dma
static const struct ide_port_info pmac_port_info = {
.name = DRV_NAME,
.init_dma = pmac_ide_init_dma,
- .chipset = ide_pmac,
.tp_ops = &pmac_tp_ops,
.port_ops = &pmac_ide_port_ops,
.dma_ops = &pmac_dma_ops,
===================================================================
@@ -114,7 +114,6 @@ static const struct ide_port_info q40ide
.tp_ops = &q40ide_tp_ops,
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
.irq_flags = IRQF_SHARED,
- .chipset = ide_generic,
};
/*
===================================================================
@@ -339,7 +339,6 @@ static const struct ide_port_ops qd6580_
static const struct ide_port_info qd65xx_port_info __initdata = {
.name = DRV_NAME,
.tp_ops = &qd65xx_tp_ops,
- .chipset = ide_qd65xx,
.host_flags = IDE_HFLAG_IO_32BIT |
IDE_HFLAG_NO_DMA,
.pio_mask = ATA_PIO4,
===================================================================
@@ -13,7 +13,6 @@
static const struct ide_port_info rapide_port_info = {
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
- .chipset = ide_generic,
};
static void rapide_setup_ports(struct ide_hw *hw, void __iomem *base,
===================================================================
@@ -822,7 +822,6 @@ static const struct ide_port_info scc_ch
.host_flags = IDE_HFLAG_SINGLE,
.irq_flags = IRQF_SHARED,
.pio_mask = ATA_PIO4,
- .chipset = ide_pci,
};
/**
===================================================================
@@ -522,7 +522,6 @@ static const struct ide_dma_ops sgiioc4_
static const struct ide_port_info sgiioc4_port_info __devinitconst = {
.name = DRV_NAME,
- .chipset = ide_pci,
.init_dma = ide_dma_sgiioc4,
.tp_ops = &sgiioc4_tp_ops,
.port_ops = &sgiioc4_port_ops,
===================================================================
@@ -124,7 +124,6 @@ static const struct ide_port_info tx4938
#endif
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
.pio_mask = ATA_PIO5,
- .chipset = ide_generic,
};
static int __init tx4938ide_probe(struct platform_device *pdev)
===================================================================
@@ -532,7 +532,6 @@ static const struct ide_port_info tx4939
.pio_mask = ATA_PIO4,
.mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
- .chipset = ide_generic,
};
static int __init tx4939ide_probe(struct platform_device *pdev)
===================================================================
@@ -130,7 +130,6 @@ static const struct ide_port_ops umc8672
static const struct ide_port_info umc8672_port_info __initdata = {
.name = DRV_NAME,
- .chipset = ide_umc8672,
.port_ops = &umc8672_port_ops,
.host_flags = IDE_HFLAG_NO_DMA,
.pio_mask = ATA_PIO4,
===================================================================
@@ -157,19 +157,6 @@ enum {
#define REQ_UNPARK_HEADS 0x23
/*
- * hwif_chipset_t is used to keep track of the specific hardware
- * chipset used by each IDE interface, if known.
- */
-enum { ide_unknown, ide_generic, ide_pci,
- ide_cmd640, ide_dtc2278, ide_ali14xx,
- ide_qd65xx, ide_umc8672, ide_ht6560b,
- ide_4drives, ide_pmac, ide_acorn,
- ide_au1xxx, ide_palm3710
-};
-
-typedef u8 hwif_chipset_t;
-
-/*
* Structure to hold all information about the location of this port
*/
struct ide_hw {
@@ -705,8 +692,6 @@ typedef struct hwif_s {
u8 cbl; /* cable type */
- hwif_chipset_t chipset; /* sub-module for tuning.. */
-
struct device *dev;
void (*rw_disk)(ide_drive_t *, struct request *);
@@ -1249,8 +1234,6 @@ struct ide_port_info {
struct ide_pci_enablebit enablebits[2];
- hwif_chipset_t chipset;
-
u16 max_sectors; /* if < than the default one */
u32 host_flags;