MFC r203445:

Report to CAM unit number of underlying ataX bus device, instead of this
atapicamX. It is more apropriate and useful together with "ata" name.
This commit is contained in:
Alexander Motin 2010-02-14 19:53:09 +00:00
parent cf8a9069cd
commit d2846ca800
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=203895

View File

@ -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;