NFC: Reset poll mod list when stopping pn533 poll
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 21 May 2012 14:20:01 +0000 (16:20 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Jun 2012 19:34:31 +0000 (21:34 +0200)
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c

index db4078765ac9ad5504f87208382af100c0edeb0d..6b8a65ca0d716dc4d6250cb9998000a3496ba361 100644 (file)
@@ -1371,6 +1371,8 @@ static void pn533_stop_poll(struct nfc_dev *nfc_dev)
 
        /* prevent pn533_start_poll_complete to issue a new poll meanwhile */
        usb_kill_urb(dev->in_urb);
+
+       pn533_poll_reset_mod_list(dev);
 }
 
 static int pn533_activate_target_nfcdep(struct pn533 *dev)