]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
amd74xx/via82cxxx: don't initialize drive->dn
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 16 Oct 2007 20:29:58 +0000 (22:29 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 16 Oct 2007 20:29:58 +0000 (22:29 +0200)
drive->dn is initialized by ide-probe.c::probe_hwif() so no need to do it
in ->init_hwif method.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/amd74xx.c
drivers/ide/pci/via82cxxx.c

index c7b3a5650259a9d713dea7a200aa1c30cfc50ebe..a39bc6e8d05914b306bd3bef0522eabafdd99e7d 100644 (file)
@@ -383,7 +383,6 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif)
                hwif->drives[i].io_32bit = 1;
                hwif->drives[i].unmask = 1;
                hwif->drives[i].autotune = 1;
-               hwif->drives[i].dn = hwif->channel * 2 + i;
        }
 
        if (!hwif->dma_base)
index bf9957fe21a80b84357157fda46d10ac8e7e42c8..b25fb65b240e10cc0e9d07cf7cb525f1bbaa084e 100644 (file)
@@ -438,7 +438,6 @@ static void __devinit init_hwif_via82cxxx(ide_hwif_t *hwif)
                hwif->drives[i].io_32bit = 1;
                hwif->drives[i].unmask = (vdev->via_config->flags & VIA_NO_UNMASK) ? 0 : 1;
                hwif->drives[i].autotune = 1;
-               hwif->drives[i].dn = hwif->channel * 2 + i;
        }
 
        if (!hwif->dma_base)