Date: Sat, 14 Feb 2009 21:54:44 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/ata ata-cbus.c ata-pci.c ata-usb.c Message-ID: <200902142155.n1ELt1I1056360@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mav 2009-02-14 21:54:44 UTC
FreeBSD src repository
Modified files:
sys/dev/ata ata-cbus.c ata-pci.c ata-usb.c
Log:
SVN rev 188615 on 2009-02-14 21:54:44Z by mav
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.
Revision Changes Path
1.27 +27 -18 src/sys/dev/ata/ata-cbus.c
1.132 +15 -20 src/sys/dev/ata/ata-pci.c
1.9 +11 -21 src/sys/dev/ata/ata-usb.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902142155.n1ELt1I1056360>
