From 2b3544b79463152df8a8328a211a735ce1f69da5 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Sun, 16 Sep 2007 17:01:26 -0600 Subject: [PATCH] --- yaml --- r: 64985 b: refs/heads/master c: fa890d586cc127ce72597ba0a909bfecf784e10c h: refs/heads/master i: 64983: c342b4ecdf001a934dd88b2462dfe869128548a9 v: v3 --- [refs] | 2 +- trunk/include/linux/isa.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 895e4c8c5718..0315b58eb7f1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5e41d0d60a534d2a5dc9772600a58f44c8d12506 +refs/heads/master: fa890d586cc127ce72597ba0a909bfecf784e10c diff --git a/trunk/include/linux/isa.h b/trunk/include/linux/isa.h index 1b855335cb11..b0270e3814c8 100644 --- a/trunk/include/linux/isa.h +++ b/trunk/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 */