aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/hci/llc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/hci/llc.c')
-rw-r--r--net/nfc/hci/llc.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/net/nfc/hci/llc.c b/net/nfc/hci/llc.c
index 32002e5339c0..bd11b0f7658a 100644
--- a/net/nfc/hci/llc.c
+++ b/net/nfc/hci/llc.c
@@ -26,9 +26,23 @@ static struct list_head llc_engines;
26 26
27int nfc_llc_init(void) 27int nfc_llc_init(void)
28{ 28{
29 int r;
30
29 INIT_LIST_HEAD(&llc_engines); 31 INIT_LIST_HEAD(&llc_engines);
30 32
31 return nfc_llc_nop_register(); 33 r = nfc_llc_nop_register();
34 if (r)
35 goto exit;
36
37 r = nfc_llc_shdlc_register();
38 if (r)
39 goto exit;
40
41 return 0;
42
43exit:
44 nfc_llc_exit();
45 return r;
32} 46}
33EXPORT_SYMBOL(nfc_llc_init); 47EXPORT_SYMBOL(nfc_llc_init);
34 48