From: Sebastian Reichel Date: Mon, 15 May 2017 09:24:30 +0000 (+0200) Subject: pinctrl: mcp23s08: irq mapping is already done X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e29e7677275dd6b50d81890ae28f017234ea52c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git pinctrl: mcp23s08: irq mapping is already done i2c-core and spi-core already assign the irq, so we can drop the additional call from the mcp driver. Signed-off-by: Sebastian Reichel Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c index be7ec7ddbce0..94d2c19a6989 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08.c +++ b/drivers/pinctrl/pinctrl-mcp23s08.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -1008,7 +1007,6 @@ static int mcp230xx_probe(struct i2c_client *client, "interrupt-controller"); pdata->mirror = of_property_read_bool(client->dev.of_node, "microchip,irq-mirror"); - client->irq = irq_of_parse_and_map(client->dev.of_node, 0); } else { pdata = dev_get_platdata(&client->dev); if (!pdata) { @@ -1164,8 +1162,6 @@ static int mcp23s08_probe(struct spi_device *spi) spi_set_drvdata(spi, data); - spi->irq = irq_of_parse_and_map(spi->dev.of_node, 0); - for (addr = 0; addr < ARRAY_SIZE(pdata->chip); addr++) { if (!(spi_present_mask & (1 << addr))) continue;