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:
parent
d273f00076
commit
517524ec87
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user