fix another LP64 problem. READ_IVAR takes a pointer to an uintptr_t, not
an int.
This commit is contained in:
parent
28f550b7a0
commit
a63ecc149e
@ -139,6 +139,7 @@ pcf_probe(device_t pcfdev)
|
|||||||
{
|
{
|
||||||
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
||||||
device_t parent = device_get_parent(pcfdev);
|
device_t parent = device_get_parent(pcfdev);
|
||||||
|
uintptr_t base;
|
||||||
|
|
||||||
device_set_desc(pcfdev, "PCF8584 I2C bus controller");
|
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");
|
device_printf(pcfdev, "cannot reserve I/O port range\n");
|
||||||
goto error;
|
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);
|
pcf->pcf_flags = device_get_flags(pcfdev);
|
||||||
|
|
||||||
|
@ -139,6 +139,7 @@ pcf_probe(device_t pcfdev)
|
|||||||
{
|
{
|
||||||
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
||||||
device_t parent = device_get_parent(pcfdev);
|
device_t parent = device_get_parent(pcfdev);
|
||||||
|
uintptr_t base;
|
||||||
|
|
||||||
device_set_desc(pcfdev, "PCF8584 I2C bus controller");
|
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");
|
device_printf(pcfdev, "cannot reserve I/O port range\n");
|
||||||
goto error;
|
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);
|
pcf->pcf_flags = device_get_flags(pcfdev);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user