diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:16 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:16 -0400 |
commit | e53cd458d593c88247b8a7b2754d0e8055869670 (patch) | |
tree | 27076f0f9a1a334cf8ab3794a63f8b1f020adbd6 /drivers/ide/ide.c | |
parent | e5e076a3540af0ed7b6491d1593396c99adbfbe1 (diff) |
ide: remove ->noprobe field from ide_hwif_t
Update IDE PMAC host driver to use drive->noprobe instead of hwif->noprobe
and remove hwif->noprobe completely (it is always set to zero now).
There should be no functional changes caused by this patch.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 91a3c8aff1e2..3be049067520 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -454,7 +454,6 @@ void ide_init_port_hw(ide_hwif_t *hwif, hw_regs_t *hw) | |||
454 | { | 454 | { |
455 | memcpy(hwif->io_ports, hw->io_ports, sizeof(hwif->io_ports)); | 455 | memcpy(hwif->io_ports, hw->io_ports, sizeof(hwif->io_ports)); |
456 | hwif->irq = hw->irq; | 456 | hwif->irq = hw->irq; |
457 | hwif->noprobe = 0; | ||
458 | hwif->chipset = hw->chipset; | 457 | hwif->chipset = hw->chipset; |
459 | hwif->gendev.parent = hw->dev; | 458 | hwif->gendev.parent = hw->dev; |
460 | hwif->ack_intr = hw->ack_intr; | 459 | hwif->ack_intr = hw->ack_intr; |
@@ -1006,14 +1005,12 @@ static int __init ide_setup(char *s) | |||
1006 | goto done; | 1005 | goto done; |
1007 | case -3: /* "nowerr" */ | 1006 | case -3: /* "nowerr" */ |
1008 | drive->bad_wstat = BAD_R_STAT; | 1007 | drive->bad_wstat = BAD_R_STAT; |
1009 | hwif->noprobe = 0; | ||
1010 | goto done; | 1008 | goto done; |
1011 | case -4: /* "cdrom" */ | 1009 | case -4: /* "cdrom" */ |
1012 | drive->present = 1; | 1010 | drive->present = 1; |
1013 | drive->media = ide_cdrom; | 1011 | drive->media = ide_cdrom; |
1014 | /* an ATAPI device ignores DRDY */ | 1012 | /* an ATAPI device ignores DRDY */ |
1015 | drive->ready_stat = 0; | 1013 | drive->ready_stat = 0; |
1016 | hwif->noprobe = 0; | ||
1017 | goto done; | 1014 | goto done; |
1018 | case -5: /* nodma */ | 1015 | case -5: /* nodma */ |
1019 | drive->nodma = 1; | 1016 | drive->nodma = 1; |
@@ -1044,7 +1041,6 @@ static int __init ide_setup(char *s) | |||
1044 | drive->sect = drive->bios_sect = vals[2]; | 1041 | drive->sect = drive->bios_sect = vals[2]; |
1045 | drive->present = 1; | 1042 | drive->present = 1; |
1046 | drive->forced_geom = 1; | 1043 | drive->forced_geom = 1; |
1047 | hwif->noprobe = 0; | ||
1048 | goto done; | 1044 | goto done; |
1049 | default: | 1045 | default: |
1050 | goto bad_option; | 1046 | goto bad_option; |