diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2009-02-28 22:07:15 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2009-02-28 22:07:15 +0000 |
| commit | ea74abd5f54699f69263b2cce18f3dd1dff23c23 (patch) | |
| tree | ec95ab40b5ed482c5e53ec83ecf3ff4a51f7e75c /sys/dev/ata/ata-disk.c | |
| parent | fef11cb704fadd3c5169412e627fc6a283c7fed0 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
| -rw-r--r-- | sys/dev/ata/ata-disk.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index a1280ac30ac6..e11f3f90fb2e 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -79,18 +79,6 @@ ad_probe(device_t dev) { struct ata_device *atadev = device_get_softc(dev); - if (atadev->type != ATA_T_ATA) - return (ENXIO); - - if (!(atadev->flags & ATA_D_PROBED)) { - atadev->flags |= ATA_D_PROBED; - if (ata_getparam(atadev, 1) == 0) - atadev->flags |= ATA_D_VALID; - } - - if (!(atadev->flags & ATA_D_VALID)) - return (ENXIO); - if (!(atadev->param.config & ATA_PROTO_ATAPI) || (atadev->param.config == ATA_CFA_MAGIC1) || (atadev->param.config == ATA_CFA_MAGIC2) || |
