diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-08-24 18:40:16 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-24 18:17:24 -0400 |
commit | f2ce39828abd556814366c2483191a7213c764f2 (patch) | |
tree | 63666f06be2821c4a3f3e8604dad505ac4906421 /drivers/nfc | |
parent | 58637c9b65300cbdf9fb7c037978daadd136be86 (diff) |
NFC: Set the IRQF_ONESHOT flag from the pn544_hci IRQ handler request
As we don't have a primary handler but only a threaded one, __setup_irq()
ends up failing if we don't set this flag.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn544_hci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nfc/pn544_hci.c b/drivers/nfc/pn544_hci.c index aa71807189ba..9458d53cdb59 100644 --- a/drivers/nfc/pn544_hci.c +++ b/drivers/nfc/pn544_hci.c | |||
@@ -848,8 +848,8 @@ static int __devinit pn544_hci_probe(struct i2c_client *client, | |||
848 | pn544_hci_platform_init(info); | 848 | pn544_hci_platform_init(info); |
849 | 849 | ||
850 | r = request_threaded_irq(client->irq, NULL, pn544_hci_irq_thread_fn, | 850 | r = request_threaded_irq(client->irq, NULL, pn544_hci_irq_thread_fn, |
851 | IRQF_TRIGGER_RISING, PN544_HCI_DRIVER_NAME, | 851 | IRQF_TRIGGER_RISING | IRQF_ONESHOT, |
852 | info); | 852 | PN544_HCI_DRIVER_NAME, info); |
853 | if (r < 0) { | 853 | if (r < 0) { |
854 | dev_err(&client->dev, "Unable to register IRQ handler\n"); | 854 | dev_err(&client->dev, "Unable to register IRQ handler\n"); |
855 | goto err_rti; | 855 | goto err_rti; |