aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2010-12-21 23:31:28 -0500
committerPaul Walmsley <paul@pwsan.com>2010-12-21 23:31:28 -0500
commit01592df95049a6f3d4abb0571ae1c7cb6e9d1cd7 (patch)
tree55b59e46d56bda655e7bc92bf2ef34cde73d3091 /arch/arm/mach-omap2
parent0102b62789af5aed92cea4cf7f36afaa1ab12c72 (diff)
OMAP2+: hwmod: Mark functions used only during initialization with __init
_register, _find_mpu_port_index and _find_mpu_rt_base are static APIs that will be used only during the omap_hwmod initialization phase. There is no need to keep them for runtime. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 298fc3b779ec..1a0dd5647cf6 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -673,7 +673,7 @@ static void _disable_optional_clocks(struct omap_hwmod *oh)
673 * Returns the array index of the OCP slave port that the MPU 673 * Returns the array index of the OCP slave port that the MPU
674 * addresses the device on, or -EINVAL upon error or not found. 674 * addresses the device on, or -EINVAL upon error or not found.
675 */ 675 */
676static int _find_mpu_port_index(struct omap_hwmod *oh) 676static int __init _find_mpu_port_index(struct omap_hwmod *oh)
677{ 677{
678 int i; 678 int i;
679 int found = 0; 679 int found = 0;
@@ -707,7 +707,7 @@ static int _find_mpu_port_index(struct omap_hwmod *oh)
707 * Return the virtual address of the base of the register target of 707 * Return the virtual address of the base of the register target of
708 * device @oh, or NULL on error. 708 * device @oh, or NULL on error.
709 */ 709 */
710static void __iomem *_find_mpu_rt_base(struct omap_hwmod *oh, u8 index) 710static void __iomem * __init _find_mpu_rt_base(struct omap_hwmod *oh, u8 index)
711{ 711{
712 struct omap_hwmod_ocp_if *os; 712 struct omap_hwmod_ocp_if *os;
713 struct omap_hwmod_addr_space *mem; 713 struct omap_hwmod_addr_space *mem;
@@ -1435,7 +1435,7 @@ static int _setup(struct omap_hwmod *oh, void *data)
1435 * that the copy process would be relatively complex due to the large number 1435 * that the copy process would be relatively complex due to the large number
1436 * of substructures. 1436 * of substructures.
1437 */ 1437 */
1438static int _register(struct omap_hwmod *oh) 1438static int __init _register(struct omap_hwmod *oh)
1439{ 1439{
1440 int ret, ms_id; 1440 int ret, ms_id;
1441 1441
@@ -1587,7 +1587,7 @@ int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data),
1587 * listed in @ohs that are valid for this chip. Returns -EINVAL if 1587 * listed in @ohs that are valid for this chip. Returns -EINVAL if
1588 * omap_hwmod_init() has already been called or 0 otherwise. 1588 * omap_hwmod_init() has already been called or 0 otherwise.
1589 */ 1589 */
1590int omap_hwmod_init(struct omap_hwmod **ohs) 1590int __init omap_hwmod_init(struct omap_hwmod **ohs)
1591{ 1591{
1592 struct omap_hwmod *oh; 1592 struct omap_hwmod *oh;
1593 int r; 1593 int r;