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>
This commit is contained in:
SeongJae Park 2014-01-18 13:53:04 +09:00 коммит произвёл Linus Walleij
Родитель 01d7004181
Коммит de755c3305
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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); match = of_match_device(of_match_ptr(mcp23s08_spi_of_match), &spi->dev);
if (match) { if (match) {
type = (int)match->data; type = (int)(uintptr_t)match->data;
status = of_property_read_u32(spi->dev.of_node, status = of_property_read_u32(spi->dev.of_node,
"microchip,spi-present-mask", &spi_present_mask); "microchip,spi-present-mask", &spi_present_mask);
if (status) { if (status) {