summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-07 22:22:10 +0000
committerjhb <jhb@FreeBSD.org>2002-11-07 22:22:10 +0000
commit4f451155dc58cc4953dbe3034d950a4e7f6500e1 (patch)
tree9ad4f3e65e2b2866ca33ad379fd55d3ac548bc3e /sys/dev
parentc792b17a1a470bdb55e4570a039e4b387c06018b (diff)
downloadFreeBSD-src-4f451155dc58cc4953dbe3034d950a4e7f6500e1.zip
FreeBSD-src-4f451155dc58cc4953dbe3034d950a4e7f6500e1.tar.gz
Make 'rclk' a uintptr_t to quiet warnings.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sio/sio_puc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sio/sio_puc.c b/sys/dev/sio/sio_puc.c
index e358949..08c0f04 100644
--- a/sys/dev/sio/sio_puc.c
+++ b/sys/dev/sio/sio_puc.c
@@ -66,7 +66,7 @@ static int
sio_puc_attach(dev)
device_t dev;
{
- u_int rclk;
+ uintptr_t rclk;
if (BUS_READ_IVAR(device_get_parent(dev), dev, PUC_IVAR_FREQ,
&rclk) != 0)
@@ -78,7 +78,7 @@ static int
sio_puc_probe(dev)
device_t dev;
{
- u_int rclk;
+ uintptr_t rclk;
if (BUS_READ_IVAR(device_get_parent(dev), dev, PUC_IVAR_FREQ,
&rclk) != 0)
@@ -86,7 +86,7 @@ sio_puc_probe(dev)
#ifdef PC98
SET_FLAG(dev, SET_IFTYPE(COM_IF_NS16550));
#endif
- return (sioprobe(dev, 0, (u_long)rclk, 1));
+ return (sioprobe(dev, 0, rclk, 1));
}
DRIVER_MODULE(sio, puc, sio_puc_driver, sio_devclass, 0, 0);
OpenPOWER on IntegriCloud