summaryrefslogtreecommitdiffstats
path: root/sys/dev/gpio/gpioiic.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/gpio/gpioiic.c')
-rw-r--r--sys/dev/gpio/gpioiic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/gpio/gpioiic.c b/sys/dev/gpio/gpioiic.c
index 15f8f18..d365eea 100644
--- a/sys/dev/gpio/gpioiic.c
+++ b/sys/dev/gpio/gpioiic.c
@@ -157,7 +157,7 @@ gpioiic_callback(device_t dev, int index, caddr_t data)
int error, how;
how = GPIOBUS_DONTWAIT;
- if (data != NULL && (int)*data == IIC_WAIT)
+ if (data != NULL && *(int*)data == IIC_WAIT)
how = GPIOBUS_WAIT;
error = 0;
switch (index) {
OpenPOWER on IntegriCloud