aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r--net/nfc/core.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c
index 83b9927e7d19..ca1e65f4b133 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -16,9 +16,7 @@
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the 19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 * Free Software Foundation, Inc.,
21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 */ 20 */
23 21
24#define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ 22#define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__
@@ -135,11 +133,8 @@ int nfc_dev_up(struct nfc_dev *dev)
135 dev->dev_up = true; 133 dev->dev_up = true;
136 134
137 /* We have to enable the device before discovering SEs */ 135 /* We have to enable the device before discovering SEs */
138 if (dev->ops->discover_se) { 136 if (dev->ops->discover_se && dev->ops->discover_se(dev))
139 rc = dev->ops->discover_se(dev); 137 pr_err("SE discovery failed\n");
140 if (rc)
141 pr_warn("SE discovery failed\n");
142 }
143 138
144error: 139error:
145 device_unlock(&dev->dev); 140 device_unlock(&dev->dev);