summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-08 14:19:52 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-08 14:19:52 +0000
commit6ce8619526c2226cb93af40b5da3586ae5cd9154 (patch)
treed92fc3484c4f0027dceff7512b12c86d2282c330
parent8e101aa49d5416920998ee6dbe5804aa3da0b43e (diff)
downloadFreeBSD-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.
-rw-r--r--sys/dev/iicbus/iicbus.c2
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);
OpenPOWER on IntegriCloud