diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index e4336035c0ea..f3953a499286 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -42,7 +42,6 @@ | |||
42 | 42 | ||
43 | static int __init omap3_l3_init(void) | 43 | static int __init omap3_l3_init(void) |
44 | { | 44 | { |
45 | int l; | ||
46 | struct omap_hwmod *oh; | 45 | struct omap_hwmod *oh; |
47 | struct platform_device *pdev; | 46 | struct platform_device *pdev; |
48 | char oh_name[L3_MODULES_MAX_LEN]; | 47 | char oh_name[L3_MODULES_MAX_LEN]; |
@@ -54,7 +53,7 @@ static int __init omap3_l3_init(void) | |||
54 | if (!(cpu_is_omap34xx())) | 53 | if (!(cpu_is_omap34xx())) |
55 | return -ENODEV; | 54 | return -ENODEV; |
56 | 55 | ||
57 | l = snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main"); | 56 | snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main"); |
58 | 57 | ||
59 | oh = omap_hwmod_lookup(oh_name); | 58 | oh = omap_hwmod_lookup(oh_name); |
60 | 59 | ||
@@ -72,7 +71,7 @@ postcore_initcall(omap3_l3_init); | |||
72 | 71 | ||
73 | static int __init omap4_l3_init(void) | 72 | static int __init omap4_l3_init(void) |
74 | { | 73 | { |
75 | int l, i; | 74 | int i; |
76 | struct omap_hwmod *oh[3]; | 75 | struct omap_hwmod *oh[3]; |
77 | struct platform_device *pdev; | 76 | struct platform_device *pdev; |
78 | char oh_name[L3_MODULES_MAX_LEN]; | 77 | char oh_name[L3_MODULES_MAX_LEN]; |
@@ -89,7 +88,7 @@ static int __init omap4_l3_init(void) | |||
89 | return -ENODEV; | 88 | return -ENODEV; |
90 | 89 | ||
91 | for (i = 0; i < L3_MODULES; i++) { | 90 | for (i = 0; i < L3_MODULES; i++) { |
92 | l = snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main_%d", i+1); | 91 | snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main_%d", i+1); |
93 | 92 | ||
94 | oh[i] = omap_hwmod_lookup(oh_name); | 93 | oh[i] = omap_hwmod_lookup(oh_name); |
95 | if (!(oh[i])) | 94 | if (!(oh[i])) |