From de755c330512364d3396c7da0c20b1c20b3b08b2 Mon Sep 17 00:00:00 2001 From: SeongJae Park Date: Sat, 18 Jan 2014 13:53:04 +0900 Subject: gpio: mcp23s08: fix casting caused build warning Signed-off-by: SeongJae Park Signed-off-by: Linus Walleij --- 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 ef3fd48aca3b..1ac288ea810d 100644 --- a/drivers/gpio/gpio-mcp23s08.c +++ b/drivers/gpio/gpio-mcp23s08.c @@ -878,7 +878,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) { -- cgit v1.2.3