diff mbox

nfc: add dummy nfc_llc_shdlc_register definition

Message ID 1348681150-29095-1-git-send-email-linville@tuxdriver.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

John W. Linville Sept. 26, 2012, 5:39 p.m. UTC
From: "John W. Linville" <linville@tuxdriver.com>

This is used when CONFIG_NFC_SHDLC is disabled.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
 net/nfc/hci/llc.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Samuel Ortiz Sept. 27, 2012, 7:12 a.m. UTC | #1
Hi John,

On Wed, Sep 26, 2012 at 01:39:10PM -0400, John W. Linville wrote:
> From: "John W. Linville" <linville@tuxdriver.com>
> 
> This is used when CONFIG_NFC_SHDLC is disabled.
> 
> Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> ---
>  net/nfc/hci/llc.h | 8 ++++++++
>  1 file changed, 8 insertions(+)

Thanks a lot for fixing this one up.

Cheers,
Samuel.
diff mbox

Patch

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_ */