summaryrefslogtreecommitdiffstats
path: root/drivers/zorro/names.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-05-17 14:01:24 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-11-26 11:09:06 +0100
commit52182c758f7c9bc34dbee0dfdce13d356de50f03 (patch)
tree0705033c84736cf10bbe2dedb496a41ebfb8c9a3 /drivers/zorro/names.c
parentzorro: Don't fill in dummy names in zorro_name_device() (diff)
downloadlinux-52182c758f7c9bc34dbee0dfdce13d356de50f03.tar.xz
linux-52182c758f7c9bc34dbee0dfdce13d356de50f03.zip
zorro: Refactor conditional handling of Zorro device name database
Using an empty static inline function in the CONFIG_ZORRO_NAMES=n case allows to drop compilation of names.c. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/zorro/names.c')
-rw-r--r--drivers/zorro/names.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/zorro/names.c b/drivers/zorro/names.c
index e44e04c4f29d..6f3fd9903ac3 100644
--- a/drivers/zorro/names.c
+++ b/drivers/zorro/names.c
@@ -15,8 +15,6 @@
#include <linux/zorro.h>
-#ifdef CONFIG_ZORRO_NAMES
-
struct zorro_prod_info {
__u16 prod;
unsigned short seen;
@@ -97,11 +95,3 @@ void __init zorro_name_device(struct zorro_dev *dev)
}
}
}
-
-#else
-
-void __init zorro_name_device(struct zorro_dev *dev)
-{
-}
-
-#endif