NFC: st21nfca: Report error returned by functions instead of -ENODEV
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 2 Dec 2014 20:27:55 +0000 (21:27 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 2 Dec 2014 21:48:32 +0000 (22:48 +0100)
commit67df3f9509b15fc29ba8c110b25f4913efa318d4
tree7df33ed33034072987be22ea946cef1eb5c3edff
parentb3a55b9c5d44d0ed38eb6e8593a47578801730de
NFC: st21nfca: Report error returned by functions instead of -ENODEV

Report error returned by devm_gpio_request_one or
st21nfca_hci_platform_init instead of -ENODEV.

Reported-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/i2c.c