diff options
author | 2011-06-20 01:09:25 +0000 | |
---|---|---|
committer | 2011-06-20 01:09:25 +0000 | |
commit | e5ad99e7d8bdc8c0147451426ba3f3b5a552e3d2 (patch) | |
tree | 1343cfb3c9246e58fe0549bed37e6820d187991c /sys/dev/isa/mcd.c | |
parent | Unbreak (diff) | |
download | wireguard-openbsd-e5ad99e7d8bdc8c0147451426ba3f3b5a552e3d2.tar.xz wireguard-openbsd-e5ad99e7d8bdc8c0147451426ba3f3b5a552e3d2.zip |
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@
Diffstat (limited to 'sys/dev/isa/mcd.c')
0 files changed, 0 insertions, 0 deletions