diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-08 14:19:52 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-08 14:19:52 +0000 |
commit | 6ce8619526c2226cb93af40b5da3586ae5cd9154 (patch) | |
tree | d92fc3484c4f0027dceff7512b12c86d2282c330 /sys/dev/iicbus | |
parent | 8e101aa49d5416920998ee6dbe5804aa3da0b43e (diff) | |
download | FreeBSD-src-6ce8619526c2226cb93af40b5da3586ae5cd9154.zip FreeBSD-src-6ce8619526c2226cb93af40b5da3586ae5cd9154.tar.gz |
Fix iicbus_get_addr() on 64-bit big-endian systems. The bus accessor
passes a uintptr_t, not a uint32_t.
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r-- | sys/dev/iicbus/iicbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c index 64c4e8f..5c16f20 100644 --- a/sys/dev/iicbus/iicbus.c +++ b/sys/dev/iicbus/iicbus.c @@ -181,7 +181,7 @@ iicbus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result) default: return (EINVAL); case IICBUS_IVAR_ADDR: - *(uint32_t *)result = devi->addr; + *result = devi->addr; break; } return (0); |