Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] gpio: mcp23s08: fix casting caused build warning

2 views
Skip to first unread message

SeongJae Park

unread,
Jan 18, 2014, 12:00:01 AM1/18/14
to
Signed-off-by: SeongJae Park <sj38...@gmail.com>
---
drivers/gpio/gpio-mcp23s08.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c
index b16401e..97198ef 100644
--- a/drivers/gpio/gpio-mcp23s08.c
+++ b/drivers/gpio/gpio-mcp23s08.c
@@ -640,7 +640,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) {
--
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linus Walleij

unread,
Jan 20, 2014, 3:20:02 AM1/20/14
to
On Sat, Jan 18, 2014 at 5:53 AM, SeongJae Park <sj38...@gmail.com> wrote:

> Signed-off-by: SeongJae Park <sj38...@gmail.com>

Patch applied.

Yours,
Linus Walleij
0 new messages