diff options
author | mav <mav@FreeBSD.org> | 2010-02-03 21:26:54 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-02-03 21:26:54 +0000 |
commit | 98d8ec0d166676047ef3a7b28510b7edc798e2d4 (patch) | |
tree | 7f59fbbe725492172d776c9b5b0f02e35a0ceba0 | |
parent | df42a0ca6b960167d6735a4fb358950b6d690ce6 (diff) | |
download | FreeBSD-src-98d8ec0d166676047ef3a7b28510b7edc798e2d4.zip FreeBSD-src-98d8ec0d166676047ef3a7b28510b7edc798e2d4.tar.gz |
Report to CAM unit number of underlying ataX bus device, instead of this
atapicamX. It is more apropriate and useful together with "ata" name.
-rw-r--r-- | sys/dev/ata/atapi-cam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-cam.c b/sys/dev/ata/atapi-cam.c index 3f8e650..2ed54e7 100644 --- a/sys/dev/ata/atapi-cam.c +++ b/sys/dev/ata/atapi-cam.c @@ -201,7 +201,7 @@ atapi_cam_attach(device_t dev) scp->parent = device_get_parent(dev); scp->ata_ch = device_get_softc(scp->parent); TAILQ_INIT(&scp->pending_hcbs); - unit = device_get_unit(dev); + unit = device_get_unit(device_get_parent(dev)); if ((devq = cam_simq_alloc(16)) == NULL) { error = ENOMEM; |