diff options
author | ed <ed@FreeBSD.org> | 2008-08-13 09:20:52 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-08-13 09:20:52 +0000 |
commit | b992b3ff383d39a480d2acf9cb459439925754d4 (patch) | |
tree | c751b31ff95d395d10366b0bc64b4bf3dbed125c /sys/dev/iicbus/ad7418.c | |
parent | 0fa4e4ac22c800e4d497d50504c891e37f62714a (diff) | |
download | FreeBSD-src-b992b3ff383d39a480d2acf9cb459439925754d4.zip FreeBSD-src-b992b3ff383d39a480d2acf9cb459439925754d4.tar.gz |
Fix compilation of arm's AVILA.
Compilation of the AVILA kernel failed because of two reasons:
- It needed curthread, which is defined through <sys/pcpu.h>.
- It still referred the softc's sc_mtx field, which has been replaced by
sc_lock three weeks ago.
To solve the first problem, I decided to include <sys/pcpu.h> in
<sys/sx.h>, which also seems to be done by <sys/mutex.h> and
<sys/rwlock.h>. Those header files also require curthread.
Approved by: jhb
Diffstat (limited to 'sys/dev/iicbus/ad7418.c')
-rw-r--r-- | sys/dev/iicbus/ad7418.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iicbus/ad7418.c b/sys/dev/iicbus/ad7418.c index b7e99d7..fe4abb8 100644 --- a/sys/dev/iicbus/ad7418.c +++ b/sys/dev/iicbus/ad7418.c @@ -120,7 +120,7 @@ ad7418_attach(device_t dev) int conf; sc->sc_dev = dev; - sx_init(&sc->sc_mtx, "ad7418"); + sx_init(&sc->sc_lock, "ad7418"); SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "temp", CTLTYPE_INT | CTLFLAG_RD, sc, 0, |