diff options
author | njl <njl@FreeBSD.org> | 2007-06-15 18:02:34 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2007-06-15 18:02:34 +0000 |
commit | 4791432171716d61887aa8408d9105a93011f61f (patch) | |
tree | 92691e312289ba9a7b6ee3b53cfc3dde9fcafc08 /sys/dev/acpica/acpi_ec.c | |
parent | 8a37be31291cc6642e87a4e17f346884f8ae26b5 (diff) | |
download | FreeBSD-src-4791432171716d61887aa8408d9105a93011f61f.zip FreeBSD-src-4791432171716d61887aa8408d9105a93011f61f.tar.gz |
Convert magic to a uintptr_t. This should get rid of some warnings on
gcc4.
Diffstat (limited to 'sys/dev/acpica/acpi_ec.c')
-rw-r--r-- | sys/dev/acpica/acpi_ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index 2ba7958..c87b3dd 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -237,7 +237,7 @@ struct acpi_ec_params { }; /* Indicate that this device has already been probed via ECDT. */ -#define DEV_ECDT(x) (acpi_get_magic(x) == (int)&acpi_ec_devclass) +#define DEV_ECDT(x) (acpi_get_magic(x) == (uintptr_t)&acpi_ec_devclass) /* * Driver softc. @@ -446,7 +446,7 @@ acpi_ec_ecdt_probe(device_t parent) params->uid = ecdt->Uid; acpi_GetInteger(h, "_GLK", ¶ms->glk); acpi_set_private(child, params); - acpi_set_magic(child, (int)&acpi_ec_devclass); + acpi_set_magic(child, (uintptr_t)&acpi_ec_devclass); /* Finish the attach process. */ if (device_probe_and_attach(child) != 0) |