[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1387238904-7843-10-git-send-email-balbi@ti.com>
Date: Mon, 16 Dec 2013 18:08:24 -0600
From: Felipe Balbi <balbi@...com>
To: <lee.jones@...aro.org>
CC: Tony Lindgren <tony@...mide.com>,
Linux OMAP Mailing List <linux-omap@...r.kernel.org>,
Linux ARM Kernel Mailing List
<linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Aaro Koskinen <aaro.koskinen@....fi>,
Felipe Balbi <balbi@...com>
Subject: [PATCH 10/10] mfd: menelaus: IRQ is a requirement
This driver needs IRQ to work, if client->irq isn't set properly, we
won't work. Remove check around request_threaded_irq().
Tested-by: Aaro Koskinen <aaro.koskinen@....fi>
Signed-off-by: Felipe Balbi <balbi@...com>
---
drivers/mfd/menelaus.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c
index 5d106e4..b01588e 100644
--- a/drivers/mfd/menelaus.c
+++ b/drivers/mfd/menelaus.c
@@ -1271,14 +1271,12 @@ static int menelaus_probe(struct i2c_client *client,
/* Set output buffer strengths */
menelaus_write_reg(m, MENELAUS_MCT_CTRL1, 0x73);
- if (client->irq > 0) {
- err = devm_request_threaded_irq(&client->dev, client->irq, NULL,
- menelaus_irq, IRQF_ONESHOT, DRIVER_NAME, m);
- if (err) {
- dev_dbg(&client->dev, "can't get IRQ %d, err %d\n",
- client->irq, err);
- goto fail;
- }
+ err = devm_request_threaded_irq(&client->dev, client->irq, NULL,
+ menelaus_irq, IRQF_ONESHOT, DRIVER_NAME, m);
+ if (err) {
+ dev_dbg(&client->dev, "can't get IRQ %d, err %d\n",
+ client->irq, err);
+ goto fail;
}
pr_info("Menelaus rev %d.%d\n", rev >> 4, rev & 0x0f);
--
1.8.4.GIT
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists