aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mcp23s08.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-mcp23s08.c')
-rw-r--r--drivers/gpio/gpio-mcp23s08.c2
1 files changed, 1 insertions, 1 deletions
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)
878 878
879 match = of_match_device(of_match_ptr(mcp23s08_spi_of_match), &spi->dev); 879 match = of_match_device(of_match_ptr(mcp23s08_spi_of_match), &spi->dev);
880 if (match) { 880 if (match) {
881 type = (int)match->data; 881 type = (int)(uintptr_t)match->data;
882 status = of_property_read_u32(spi->dev.of_node, 882 status = of_property_read_u32(spi->dev.of_node,
883 "microchip,spi-present-mask", &spi_present_mask); 883 "microchip,spi-present-mask", &spi_present_mask);
884 if (status) { 884 if (status) {