[PATCH 4/4] staging: xillybus: Remove sparse error on IS_ERR()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IS_ERR() expects a non-__iomem pointer.

Signed-off-by: Eli Billauer <eli.billauer@xxxxxxxxx>
---
 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
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux