提交 de755c33 编写于 作者: S SeongJae Park 提交者: Linus Walleij

gpio: mcp23s08: fix casting caused build warning

Signed-off-by: NSeongJae Park <sj38.park@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 01d70041
...@@ -878,7 +878,7 @@ static int mcp23s08_probe(struct spi_device *spi) ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册