]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include: convert various register fcns to macros to avoid include chaining
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 13:02:11 +0000 (09:02 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 08:06:39 +0000 (04:06 -0400)
commit2aeabb21920e864b441590a44a787362bbd2fb10
treea9af6f50c6e15c043c4012a08430b5665cad2f57
parentbb2a255fa06258a71fbfdcac4ffc270978bfd7f5
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>
include/linux/bcma/bcma.h
include/linux/device.h
include/linux/gameport.h
include/linux/hid.h
include/linux/i2c.h
include/linux/pci_hotplug.h
include/linux/serio.h
include/linux/ssb/ssb.h
include/linux/uio_driver.h
include/linux/usb.h
include/linux/uwb/umc.h