diff options
Diffstat (limited to 'drivers/nfc/pn533.c')
-rw-r--r-- | drivers/nfc/pn533.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index 8ee032d3faa0..c20778a56f4f 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -1550,6 +1550,11 @@ static int pn533_poll_complete(struct pn533 *dev, void *arg, | |||
1550 | if (!rc) | 1550 | if (!rc) |
1551 | goto done; | 1551 | goto done; |
1552 | 1552 | ||
1553 | if (!dev->poll_mod_count) { | ||
1554 | nfc_dev_dbg(&dev->interface->dev, "Polling has been stoped."); | ||
1555 | goto done; | ||
1556 | } | ||
1557 | |||
1553 | pn533_poll_next_mod(dev); | 1558 | pn533_poll_next_mod(dev); |
1554 | queue_work(dev->wq, &dev->poll_work); | 1559 | queue_work(dev->wq, &dev->poll_work); |
1555 | 1560 | ||