diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
commit | af52739b922f656eb1f39016fabaabe4baeda2e2 (patch) | |
tree | 79a7aa810d0493cd0cf4adebac26d37f12e8b545 /include/linux/isa.h | |
parent | 25ed6a5e97809129a1bc852b6b5c7d03baa112c4 (diff) | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) |
Merge 4.7-rc4 into staging-next
We want the fixes in here, and we can resolve a merge issue in
drivers/iio/industrialio-trigger.c
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/isa.h')
-rw-r--r-- | include/linux/isa.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/isa.h b/include/linux/isa.h index 5ab85281230b..f2d0258414cf 100644 --- a/include/linux/isa.h +++ b/include/linux/isa.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #define __LINUX_ISA_H | 6 | #define __LINUX_ISA_H |
7 | 7 | ||
8 | #include <linux/device.h> | 8 | #include <linux/device.h> |
9 | #include <linux/errno.h> | ||
9 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
10 | 11 | ||
11 | struct isa_driver { | 12 | struct isa_driver { |
@@ -22,13 +23,13 @@ struct isa_driver { | |||
22 | 23 | ||
23 | #define to_isa_driver(x) container_of((x), struct isa_driver, driver) | 24 | #define to_isa_driver(x) container_of((x), struct isa_driver, driver) |
24 | 25 | ||
25 | #ifdef CONFIG_ISA | 26 | #ifdef CONFIG_ISA_BUS_API |
26 | int isa_register_driver(struct isa_driver *, unsigned int); | 27 | int isa_register_driver(struct isa_driver *, unsigned int); |
27 | void isa_unregister_driver(struct isa_driver *); | 28 | void isa_unregister_driver(struct isa_driver *); |
28 | #else | 29 | #else |
29 | static inline int isa_register_driver(struct isa_driver *d, unsigned int i) | 30 | static inline int isa_register_driver(struct isa_driver *d, unsigned int i) |
30 | { | 31 | { |
31 | return 0; | 32 | return -ENODEV; |
32 | } | 33 | } |
33 | 34 | ||
34 | static inline void isa_unregister_driver(struct isa_driver *d) | 35 | static inline void isa_unregister_driver(struct isa_driver *d) |