[PATCH] nfc: add dummy nfc_llc_shdlc_register definition

From
John W. Linville <hidden>
Date
2012-09-26 17:40:05
Reply to
Randy Dunlap, 2012-09-26
From: "John W. Linville" <redacted>

This is used when CONFIG_NFC_SHDLC is disabled.

Reported-by: Randy Dunlap <redacted>
Signed-off-by: John W. Linville <redacted>
---
 net/nfc/hci/llc.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/net/nfc/hci/llc.h b/net/nfc/hci/llc.h
index c7014fd..7be0b7f 100644
--- a/net/nfc/hci/llc.h
+++ b/net/nfc/hci/llc.h
@@ -56,6 +56,14 @@ int nfc_llc_register(const char *name, struct nfc_llc_ops *ops);
 void nfc_llc_unregister(const char *name);
 
 int nfc_llc_nop_register(void);
+
+#if defined(CONFIG_NFC_SHDLC)
 int nfc_llc_shdlc_register(void);
+#else
+static inline int nfc_llc_shdlc_register(void)
+{
+	return 0;
+}
+#endif
 
 #endif /* __LOCAL_LLC_H_ */
-- 
1.7.11.4
Thread (3 messages) 3 messages, 3 authors, last reply 2012-09-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help