CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2011/06/19 19:09:25
Modified files:
sys/dev/isa : if_lc_isa.c if_we.c radiotrack2.c sf16fmr2.c
wdc_isa.c
Log message:
isa(4) is an indirect bus, which means that drivers that attach to it
need to provide an xxxprobe() method instead of an xxxmatch() method.
The critical difference is xxxprobe() is given a device softc for the
second argument, whereas a xxxmatch() is given the cfdata as the
second argument.
This commit fixes the handful of ISA device drivers that incorrectly
cast the second argument to a "struct cfdata *" instead of a "struct
device *". (Minor complication: unlike isa(4), isapnp(4) is a direct
bus, and if_we.c used the same probe/match code for both; now separate
we_probe and we_match methods are used as appropriate.)
"makes sense to me" krw@; ok miod@