mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
fix another LP64 problem. READ_IVAR takes a pointer to an uintptr_t, not
an int.
This commit is contained in:
parent
32d742049e
commit
b9d3718a18
2 changed files with 6 additions and 2 deletions
|
|
@ -139,6 +139,7 @@ pcf_probe(device_t pcfdev)
|
|||
{
|
||||
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
||||
device_t parent = device_get_parent(pcfdev);
|
||||
uintptr_t base;
|
||||
|
||||
device_set_desc(pcfdev, "PCF8584 I2C bus controller");
|
||||
|
||||
|
|
@ -156,7 +157,8 @@ pcf_probe(device_t pcfdev)
|
|||
device_printf(pcfdev, "cannot reserve I/O port range\n");
|
||||
goto error;
|
||||
}
|
||||
BUS_READ_IVAR(parent, pcfdev, ISA_IVAR_PORT, &pcf->pcf_base);
|
||||
BUS_READ_IVAR(parent, pcfdev, ISA_IVAR_PORT, &base);
|
||||
pcf->pcf_base = base;
|
||||
|
||||
pcf->pcf_flags = device_get_flags(pcfdev);
|
||||
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ pcf_probe(device_t pcfdev)
|
|||
{
|
||||
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
||||
device_t parent = device_get_parent(pcfdev);
|
||||
uintptr_t base;
|
||||
|
||||
device_set_desc(pcfdev, "PCF8584 I2C bus controller");
|
||||
|
||||
|
|
@ -156,7 +157,8 @@ pcf_probe(device_t pcfdev)
|
|||
device_printf(pcfdev, "cannot reserve I/O port range\n");
|
||||
goto error;
|
||||
}
|
||||
BUS_READ_IVAR(parent, pcfdev, ISA_IVAR_PORT, &pcf->pcf_base);
|
||||
BUS_READ_IVAR(parent, pcfdev, ISA_IVAR_PORT, &base);
|
||||
pcf->pcf_base = base;
|
||||
|
||||
pcf->pcf_flags = device_get_flags(pcfdev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue