Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fa890d586cc127ce72597ba0a909bfecf784e10c
Commit:     fa890d586cc127ce72597ba0a909bfecf784e10c
Parent:     5e41d0d60a534d2a5dc9772600a58f44c8d12506
Author:     Matthew Wilcox <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 16 17:01:26 2007 -0600
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Sep 16 21:13:58 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 include/linux/isa.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/include/linux/isa.h b/include/linux/isa.h
index 1b85533..b0270e3 100644
--- a/include/linux/isa.h
+++ b/include/linux/isa.h
@@ -22,7 +22,18 @@ struct isa_driver {
 
 #define to_isa_driver(x) container_of((x), struct isa_driver, driver)
 
+#ifdef CONFIG_ISA
 int isa_register_driver(struct isa_driver *, unsigned int);
 void isa_unregister_driver(struct isa_driver *);
+#else
+static inline int isa_register_driver(struct isa_driver *d, unsigned int i)
+{
+       return 0;
+}
+
+static inline void isa_unregister_driver(struct isa_driver *d)
+{
+}
+#endif
 
 #endif /* __LINUX_ISA_H */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to