summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/mei_phy.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-05-29 10:59:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-05-29 10:59:35 -0400
commit50cc1cab4cfc8ab32dc6ae470c271cdf65e82de3 (patch)
tree50a1488b5bf44499fe8d2ad73543bf7f8fc4b05b /drivers/nfc/mei_phy.c
parent8e6d91ae0917bf934ed86411148f79d904728d51 (diff)
parentadd295a4afbdf5852d004c754c552d692b0fcac8 (diff)
downloadop-kernel-dev-50cc1cab4cfc8ab32dc6ae470c271cdf65e82de3.zip
op-kernel-dev-50cc1cab4cfc8ab32dc6ae470c271cdf65e82de3.tar.gz
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'drivers/nfc/mei_phy.c')
-rw-r--r--drivers/nfc/mei_phy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/nfc/mei_phy.c b/drivers/nfc/mei_phy.c
index b8f8abc..1201bdb 100644
--- a/drivers/nfc/mei_phy.c
+++ b/drivers/nfc/mei_phy.c
@@ -64,6 +64,15 @@ int nfc_mei_phy_enable(void *phy_id)
return r;
}
+ r = mei_cl_register_event_cb(phy->device, nfc_mei_event_cb, phy);
+ if (r) {
+ pr_err("MEY_PHY: Event cb registration failed\n");
+ mei_cl_disable_device(phy->device);
+ phy->powered = 0;
+
+ return r;
+ }
+
phy->powered = 1;
return 0;
OpenPOWER on IntegriCloud