commit | 9e5ed094c89e55fbf11d2e81d60be98eb12346c0 | [log] [tgz] |
---|---|---|
author | viresh kumar <viresh.kumar@st.com> | Thu Mar 15 10:40:38 2012 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Fri Mar 16 23:32:35 2012 +0000 |
tree | b77c63a452580643cdede36c3038d52995e54d8e | |
parent | a64ae394eb7de5e39cf462c18edb202196c678fa [diff] |
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>