diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-05-17 08:01:24 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-26 05:09:06 -0500 |
commit | 52182c758f7c9bc34dbee0dfdce13d356de50f03 (patch) | |
tree | 0705033c84736cf10bbe2dedb496a41ebfb8c9a3 /drivers/zorro/zorro.h | |
parent | bd79014cd47b3a0fa59a7a17489d8ada56ecab9b (diff) |
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/zorro.h')
-rw-r--r-- | drivers/zorro/zorro.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 | ||