Fix iicbus_get_addr() on 64-bit big-endian systems. The bus accessor

passes a uintptr_t, not a uint32_t.
This commit is contained in:
Nathan Whitehorn 2010-07-08 14:19:52 +00:00
parent d273f00076
commit 517524ec87

View File

@ -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);