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>
このコミットが含まれているのは:
Geert Uytterhoeven
2013-05-17 14:01:24 +02:00
コミット 52182c758f
3個のファイルの変更7行の追加11行の削除

ファイルの表示

@@ -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