]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
nfc: Remove unused nfc_printk and nfc_<level> macros
authorJoe Perches <joe@perches.com>
Tue, 29 Nov 2011 19:37:34 +0000 (11:37 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Nov 2011 20:08:37 +0000 (15:08 -0500)
All uses have been removed, so killing what's not necessary.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/core.c
net/nfc/nfc.h

index c922adb9e651cd35e468b50611f9fd6d5169bf08..3ebc6b3aabacc3446fd5e425a78898f149e518d6 100644 (file)
 int nfc_devlist_generation;
 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
  *
index d86583f4831d73f7fd4ee6a8d4f898eb3b1a3f3e..67d605015304ce035bef970d1c05697e60b8155b 100644 (file)
 #include <net/nfc/nfc.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 {
        int id;
        struct proto *proto;