]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7362/1: AMBA: Add module_amba_driver() helper macro for amba_driver
authorviresh kumar <viresh.kumar@st.com>
Thu, 15 Mar 2012 09:40:38 +0000 (10:40 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 16 Mar 2012 23:32:35 +0000 (23:32 +0000)
commitfbd2bb5504c4e1a6670e77190c3c6b58bdfc07ef
treeb77c63a452580643cdede36c3038d52995e54d8e
parent43ed2d455aed7630502bbd18286665704f324416
ARM: 7362/1: AMBA: Add module_amba_driver() helper macro for amba_driver

For simple modules that contain a single amba_driver without any
additional setup code then ends up being a block of duplicated
boilerplate. This patch adds a new macro, module_amba_driver(),
which replaces the module_init()/module_exit() registrations with
template functions.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/char/hw_random/nomadik-rng.c
drivers/dma/pl330.c
drivers/input/serio/ambakmi.c
drivers/mmc/host/mmci.c
drivers/rtc/rtc-pl030.c
drivers/rtc/rtc-pl031.c
drivers/watchdog/sp805_wdt.c
include/linux/amba/bus.h
sound/arm/aaci.c