diff options
author | SeongJae Park <sj38.park@gmail.com> | 2014-01-18 13:53:04 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-20 09:10:03 +0100 |
commit | de755c330512364d3396c7da0c20b1c20b3b08b2 (patch) | |
tree | fcd99f7a5f0183d20410c7a686f90aeefa9d1383 /drivers/gpio | |
parent | 01d7004181c8ff6d63bf5e8e2b771022c4f78289 (diff) | |
download | op-kernel-dev-de755c330512364d3396c7da0c20b1c20b3b08b2.zip op-kernel-dev-de755c330512364d3396c7da0c20b1c20b3b08b2.tar.gz |
gpio: mcp23s08: fix casting caused build warning
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mcp23s08.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index ef3fd48..1ac288e 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) { |