[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1390020784-21292-1-git-send-email-sj38.park@gmail.com>
Date: Sat, 18 Jan 2014 13:53:04 +0900
From: SeongJae Park <sj38.park@...il.com>
To: gregkh@...uxfoundation.org, linus.walleij@...aro.org,
gnurou@...il.com
Cc: linux-gpio@...r.kernle.org, linux-kernel@...r.kernel.org,
SeongJae Park <sj38.park@...il.com>
Subject: [PATCH] gpio: mcp23s08: fix casting caused build warning
Signed-off-by: SeongJae Park <sj38.park@...il.com>
---
drivers/gpio/gpio-mcp23s08.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c
index b16401e..97198ef 100644
--- a/drivers/gpio/gpio-mcp23s08.c
+++ b/drivers/gpio/gpio-mcp23s08.c
@@ -640,7 +640,7 @@ static int mcp23s08_probe(struct spi_device *spi)
match = of_match_device(of_match_ptr(mcp23s08_spi_of_match), &spi->dev);
if (match) {
- type = (int)match->data;
+ type = (int)(uintptr_t)match->data;
status = of_property_read_u32(spi->dev.of_node,
"microchip,spi-present-mask", &spi_present_mask);
if (status) {
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists