]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
DEVICE_PROBE(9) claims that we must not initialize softc on probe stage.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 14 Feb 2009 21:54:44 +0000 (21:54 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 14 Feb 2009 21:54:44 +0000 (21:54 +0000)
commitd7216f56945229787b156be9c21f665a8d49443e
tree83bc5ce5082c66890ae2f7068fd3d5bed3a57594
parent03fd9c2092aee63a5a7e0b981cdaffcef1092b1e
DEVICE_PROBE(9) claims that we must not initialize softc on probe stage.
Move channel softc initialization from ata_XXX_probe() to ata_XXX_attach().

Instead of calculating ata channel number as position in child device list,
pass it's real number directly from controller probe routine using ivars.
It is simpler and IMHO more correct.
sys/dev/ata/ata-cbus.c
sys/dev/ata/ata-pci.c
sys/dev/ata/ata-usb.c