Commit fa890d586cc127ce72597ba0a909bfecf784e10c
Committed by
Linus Torvalds
1 parent
5e41d0d60a
Exists in
master
and in
20 other branches
Fix non-ISA link error in drivers/scsi/advansys.c
When CONFIG_ISA is disabled, the isa_driver support will not be compiled in. Define stubs so that we don't get link-time errors. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff
include/linux/isa.h
... | ... | @@ -22,8 +22,19 @@ |
22 | 22 | |
23 | 23 | #define to_isa_driver(x) container_of((x), struct isa_driver, driver) |
24 | 24 | |
25 | +#ifdef CONFIG_ISA | |
25 | 26 | int isa_register_driver(struct isa_driver *, unsigned int); |
26 | 27 | void isa_unregister_driver(struct isa_driver *); |
28 | +#else | |
29 | +static inline int isa_register_driver(struct isa_driver *d, unsigned int i) | |
30 | +{ | |
31 | + return 0; | |
32 | +} | |
33 | + | |
34 | +static inline void isa_unregister_driver(struct isa_driver *d) | |
35 | +{ | |
36 | +} | |
37 | +#endif | |
27 | 38 | |
28 | 39 | #endif /* __LINUX_ISA_H */ |