diff options
author | mav <mav@FreeBSD.org> | 2012-05-28 14:33:15 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-05-28 14:33:15 +0000 |
commit | b9ef440fcd00fd63084145a507ed07fb7d055759 (patch) | |
tree | f574cef158e4d9f183f990a21b71ecb58566d6c8 /sys/dev/ata/ata-all.c | |
parent | d57cf5a8a07cc28b4bdbe58f60e8fa64a8a86ec9 (diff) | |
download | FreeBSD-src-b9ef440fcd00fd63084145a507ed07fb7d055759.zip FreeBSD-src-b9ef440fcd00fd63084145a507ed07fb7d055759.tar.gz |
Make legacy ATA to not call device_add_child() with unit number but
without driver name. This fixed legacy ATA breakage by r235978.
MFC after: 1 week
Diffstat (limited to 'sys/dev/ata/ata-all.c')
-rw-r--r-- | sys/dev/ata/ata-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 3caad01..6bee48d 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -887,7 +887,7 @@ ata_add_child(device_t parent, struct ata_device *atadev, int unit) { device_t child; - if ((child = device_add_child(parent, NULL, unit))) { + if ((child = device_add_child(parent, (unit < 0) ? NULL : "ad", unit))) { device_set_softc(child, atadev); device_quiet(child); atadev->dev = child; |