summaryrefslogtreecommitdiffstats
path: root/include/linux/bcma/bcma.h
diff options
context:
space:
mode:
authorPaul Gortmaker2011-05-27 15:02:11 +0200
committerPaul Gortmaker2011-11-01 00:32:32 +0100
commiteb5589a8f0dab7e29021344228856339e6a1249c (patch)
treed83790e5ac7feacba5b1832fbe7f8d2a39d76f65 /include/linux/bcma/bcma.h
parentcrypto.h: remove unused crypto_tfm_alg_modname() inline (diff)
downloadkernel-qcow2-linux-eb5589a8f0dab7e29021344228856339e6a1249c.tar.gz
kernel-qcow2-linux-eb5589a8f0dab7e29021344228856339e6a1249c.tar.xz
kernel-qcow2-linux-eb5589a8f0dab7e29021344228856339e6a1249c.zip
include: convert various register fcns to macros to avoid include chaining
The original implementations reference THIS_MODULE in an inline. We could include <linux/export.h>, but it is better to avoid chaining. Fortunately someone else already thought of this, and made a similar inline into a #define in <linux/device.h> for device_schedule_callback(), [see commit 523ded71de0] so follow that precedent here. Also bubble up any __must_check that were used on the prev. wrapper inline functions up one to the real __register functions, to preserve any prev. sanity checks that were used in those instances. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include/linux/bcma/bcma.h')
-rw-r--r--include/linux/bcma/bcma.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h
index 5dbd7055cb86..4d4b59de9467 100644
--- a/include/linux/bcma/bcma.h
+++ b/include/linux/bcma/bcma.h
@@ -170,10 +170,9 @@ struct bcma_driver {
};
extern
int __bcma_driver_register(struct bcma_driver *drv, struct module *owner);
-static inline int bcma_driver_register(struct bcma_driver *drv)
-{
- return __bcma_driver_register(drv, THIS_MODULE);
-}
+#define bcma_driver_register(drv) \
+ __bcma_driver_register(drv, THIS_MODULE)
+
extern void bcma_driver_unregister(struct bcma_driver *drv);
struct bcma_bus {