1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

fix another LP64 problem. READ_IVAR takes a pointer to an uintptr_t, not

an int.
This commit is contained in:
John-Mark Gurney 2003-06-20 07:22:54 +00:00
parent 32d742049e
commit b9d3718a18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116599
2 changed files with 6 additions and 2 deletions

View File

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

View File

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