ide: remove chipset type fixup from ide_host_register()

* Set chipset type explicitly in tx4938ide and tx4939ide host drivers
  (all other host drivers were updated already).

* Remove no longer used chipset type fixup from ide_host_register().
Acked-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 3ee86dcd
...@@ -1655,9 +1655,6 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d, ...@@ -1655,9 +1655,6 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d,
if (hwif == NULL) if (hwif == NULL)
continue; continue;
if (hwif->chipset == ide_unknown)
hwif->chipset = ide_generic;
if (hwif->present) if (hwif->present)
hwif_register_devices(hwif); hwif_register_devices(hwif);
} }
......
...@@ -226,6 +226,7 @@ static const struct ide_port_info tx4938ide_port_info __initdata = { ...@@ -226,6 +226,7 @@ static const struct ide_port_info tx4938ide_port_info __initdata = {
#endif #endif
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA, .host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
.pio_mask = ATA_PIO5, .pio_mask = ATA_PIO5,
.chipset = ide_generic,
}; };
static int __init tx4938ide_probe(struct platform_device *pdev) static int __init tx4938ide_probe(struct platform_device *pdev)
......
...@@ -650,6 +650,7 @@ static const struct ide_port_info tx4939ide_port_info __initdata = { ...@@ -650,6 +650,7 @@ static const struct ide_port_info tx4939ide_port_info __initdata = {
.pio_mask = ATA_PIO4, .pio_mask = ATA_PIO4,
.mwdma_mask = ATA_MWDMA2, .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5, .udma_mask = ATA_UDMA5,
.chipset = ide_generic,
}; };
static int __init tx4939ide_probe(struct platform_device *pdev) static int __init tx4939ide_probe(struct platform_device *pdev)
......
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