aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r--drivers/spi/spi-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
index 7beeb29472ac..dd4fe5036220 100644
--- a/drivers/spi/spi-gpio.c
+++ b/drivers/spi/spi-gpio.c
@@ -250,7 +250,7 @@ static int spi_gpio_setup(struct spi_device *spi)
250 /* 250 /*
251 * ... otherwise, take it from spi->controller_data 251 * ... otherwise, take it from spi->controller_data
252 */ 252 */
253 cs = (unsigned int) spi->controller_data; 253 cs = (unsigned int)(uintptr_t) spi->controller_data;
254 } 254 }
255 255
256 if (!spi->controller_state) { 256 if (!spi->controller_state) {