diff options
Diffstat (limited to 'drivers/zorro')
-rw-r--r-- | drivers/zorro/Makefile | 3 | ||||
-rw-r--r-- | drivers/zorro/names.c | 10 | ||||
-rw-r--r-- | drivers/zorro/zorro.h | 5 |
3 files changed, 7 insertions, 11 deletions
diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile index f62172603215..7dc5332ff984 100644 --- a/drivers/zorro/Makefile +++ b/drivers/zorro/Makefile | |||
@@ -2,8 +2,9 @@ | |||
2 | # Makefile for the Zorro bus specific drivers. | 2 | # Makefile for the Zorro bus specific drivers. |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o names.o | 5 | obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o |
6 | obj-$(CONFIG_PROC_FS) += proc.o | 6 | obj-$(CONFIG_PROC_FS) += proc.o |
7 | obj-$(CONFIG_ZORRO_NAMES) += names.o | ||
7 | 8 | ||
8 | hostprogs-y := gen-devlist | 9 | hostprogs-y := gen-devlist |
9 | 10 | ||
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 @@ | |||
15 | #include <linux/zorro.h> | 15 | #include <linux/zorro.h> |
16 | 16 | ||
17 | 17 | ||
18 | #ifdef CONFIG_ZORRO_NAMES | ||
19 | |||
20 | struct zorro_prod_info { | 18 | struct zorro_prod_info { |
21 | __u16 prod; | 19 | __u16 prod; |
22 | unsigned short seen; | 20 | unsigned short seen; |
@@ -97,11 +95,3 @@ void __init zorro_name_device(struct zorro_dev *dev) | |||
97 | } | 95 | } |
98 | } | 96 | } |
99 | } | 97 | } |
100 | |||
101 | #else | ||
102 | |||
103 | void __init zorro_name_device(struct zorro_dev *dev) | ||
104 | { | ||
105 | } | ||
106 | |||
107 | #endif | ||
diff --git a/drivers/zorro/zorro.h b/drivers/zorro/zorro.h index b682d5ccd63f..34119fb4e560 100644 --- a/drivers/zorro/zorro.h +++ b/drivers/zorro/zorro.h | |||
@@ -1,4 +1,9 @@ | |||
1 | 1 | ||
2 | #ifdef CONFIG_ZORRO_NAMES | ||
2 | extern void zorro_name_device(struct zorro_dev *z); | 3 | extern void zorro_name_device(struct zorro_dev *z); |
4 | #else | ||
5 | static inline void zorro_name_device(struct zorro_dev *dev) { } | ||
6 | #endif | ||
7 | |||
3 | extern int zorro_create_sysfs_dev_files(struct zorro_dev *z); | 8 | extern int zorro_create_sysfs_dev_files(struct zorro_dev *z); |
4 | 9 | ||