NFC: Prevent polling when device is down
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 10 Apr 2013 10:25:30 +0000 (12:25 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 11 Apr 2013 14:29:10 +0000 (16:29 +0200)
commit7757dc8a3e7658abb6e5fc7d825a38b27961d0c8
treebaf60c1117faa0c747d0330d9b9c15e031f18628
parent7c5a54fb869d980c2a3c0972fe1e22816dd5b7b2
NFC: Prevent polling when device is down

Some devices turn radio on whenever they're asked to start a poll.
To prevent that from happening, we just don't call into the driver
start_poll hook when the NFC device is down.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/core.c