IS_ERR() expects a non-__iomem pointer.
Signed-off-by: Eli Billauer <[email protected]>
---
drivers/staging/xillybus/xillybus_of.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/xillybus/xillybus_of.c
b/drivers/staging/xillybus/xillybus_of.c
index e0ae234..fb97845 100644
--- a/drivers/staging/xillybus/xillybus_of.c
+++ b/drivers/staging/xillybus/xillybus_of.c
@@ -147,8 +147,8 @@ static int xilly_drv_probe(struct platform_device *op)
rc = of_address_to_resource(dev->of_node, 0, &res);
endpoint->registers = devm_ioremap_resource(dev, &res);
- if (IS_ERR(endpoint->registers))
- return PTR_ERR(endpoint->registers);
+ if (IS_ERR((__force void *) endpoint->registers))
+ return PTR_ERR((__force void *) endpoint->registers);
irq = irq_of_parse_and_map(dev->of_node, 0);
--
1.7.2.3
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel