Commit 538af134 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville

nfc: Remove unused nfc_printk and nfc_<level> macros

All uses have been removed, so killing what's not necessary.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 20c239c1
...@@ -35,25 +35,6 @@ ...@@ -35,25 +35,6 @@
int nfc_devlist_generation; int nfc_devlist_generation;
DEFINE_MUTEX(nfc_devlist_mutex); DEFINE_MUTEX(nfc_devlist_mutex);
int nfc_printk(const char *level, const char *format, ...)
{
struct va_format vaf;
va_list args;
int r;
va_start(args, format);
vaf.fmt = format;
vaf.va = &args;
r = printk("%sNFC: %pV\n", level, &vaf);
va_end(args);
return r;
}
EXPORT_SYMBOL(nfc_printk);
/** /**
* nfc_dev_up - turn on the NFC device * nfc_dev_up - turn on the NFC device
* *
......
...@@ -27,13 +27,6 @@ ...@@ -27,13 +27,6 @@
#include <net/nfc/nfc.h> #include <net/nfc/nfc.h>
#include <net/sock.h> #include <net/sock.h>
__printf(2, 3)
int nfc_printk(const char *level, const char *fmt, ...);
#define nfc_info(fmt, arg...) nfc_printk(KERN_INFO, fmt, ##arg)
#define nfc_err(fmt, arg...) nfc_printk(KERN_ERR, fmt, ##arg)
#define nfc_dbg(fmt, arg...) pr_debug(fmt "\n", ##arg)
struct nfc_protocol { struct nfc_protocol {
int id; int id;
struct proto *proto; struct proto *proto;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment