diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-09-14 10:43:52 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2012-09-20 06:32:37 -0400 |
commit | 65b67d33fbce920d7c502a146504fcbb2db99e40 (patch) | |
tree | ca88b501d867fef0c62d1c1ee4d978bf788ac9a2 | |
parent | 9cf24b157c3c4e7bc4060668245dc4affba3dcfc (diff) |
ARM: ux500: Clean-up MSP platform code
This patch contains a couple of general MSP clean-ups pertaining to
layout changes and changing functions to be void instead of int instead
of regardlessly returning '0'.
Acked-by: Ola Lilja <ola.o.lilja@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-msp.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-msp.h | 14 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.h | 1 |
4 files changed, 7 insertions, 23 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-msp.c b/arch/arm/mach-ux500/board-mop500-msp.c index ace6c051bc1a..dcf5ea9884f8 100644 --- a/arch/arm/mach-ux500/board-mop500-msp.c +++ b/arch/arm/mach-ux500/board-mop500-msp.c | |||
@@ -143,11 +143,11 @@ static struct platform_device *db8500_add_msp_i2s(struct device *parent, | |||
143 | 143 | ||
144 | /* Platform device for ASoC MOP500 machine */ | 144 | /* Platform device for ASoC MOP500 machine */ |
145 | static struct platform_device snd_soc_mop500 = { | 145 | static struct platform_device snd_soc_mop500 = { |
146 | .name = "snd-soc-mop500", | 146 | .name = "snd-soc-mop500", |
147 | .id = 0, | 147 | .id = 0, |
148 | .dev = { | 148 | .dev = { |
149 | .platform_data = NULL, | 149 | .platform_data = NULL, |
150 | }, | 150 | }, |
151 | }; | 151 | }; |
152 | 152 | ||
153 | /* Platform device for Ux500-PCM */ | 153 | /* Platform device for Ux500-PCM */ |
@@ -171,7 +171,7 @@ static struct msp_i2s_platform_data msp3_platform_data = { | |||
171 | .msp_i2s_dma_tx = NULL, | 171 | .msp_i2s_dma_tx = NULL, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | int mop500_msp_init(struct device *parent) | 174 | void mop500_msp_init(struct device *parent) |
175 | { | 175 | { |
176 | pr_info("%s: Register platform-device 'snd-soc-mop500'.\n", __func__); | 176 | pr_info("%s: Register platform-device 'snd-soc-mop500'.\n", __func__); |
177 | platform_device_register(&snd_soc_mop500); | 177 | platform_device_register(&snd_soc_mop500); |
@@ -185,6 +185,4 @@ int mop500_msp_init(struct device *parent) | |||
185 | &msp2_platform_data); | 185 | &msp2_platform_data); |
186 | db8500_add_msp_i2s(parent, 3, U8500_MSP3_BASE, IRQ_DB8500_MSP1, | 186 | db8500_add_msp_i2s(parent, 3, U8500_MSP3_BASE, IRQ_DB8500_MSP1, |
187 | &msp3_platform_data); | 187 | &msp3_platform_data); |
188 | |||
189 | return 0; | ||
190 | } | 188 | } |
diff --git a/arch/arm/mach-ux500/board-mop500-msp.h b/arch/arm/mach-ux500/board-mop500-msp.h deleted file mode 100644 index 6fcfb5e2cc94..000000000000 --- a/arch/arm/mach-ux500/board-mop500-msp.h +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) ST-Ericsson SA 2012 | ||
3 | * | ||
4 | * Author: Ola Lilja <ola.o.lilja@stericsson.com>, | ||
5 | * for ST-Ericsson. | ||
6 | * | ||
7 | * License terms: | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as published | ||
11 | * by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | void mop500_msp_init(struct device *parent); | ||
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 8890b19b90e7..a7994776ef30 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -54,7 +54,6 @@ | |||
54 | #include "devices-db8500.h" | 54 | #include "devices-db8500.h" |
55 | #include "board-mop500.h" | 55 | #include "board-mop500.h" |
56 | #include "board-mop500-regulators.h" | 56 | #include "board-mop500-regulators.h" |
57 | #include "board-mop500-msp.h" | ||
58 | 57 | ||
59 | static struct gpio_led snowball_led_array[] = { | 58 | static struct gpio_led snowball_led_array[] = { |
60 | { | 59 | { |
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h index eb421f9f01aa..bdae9b03a33b 100644 --- a/arch/arm/mach-ux500/board-mop500.h +++ b/arch/arm/mach-ux500/board-mop500.h | |||
@@ -94,6 +94,7 @@ void __init mop500_stuib_init(void); | |||
94 | void __init mop500_pinmaps_init(void); | 94 | void __init mop500_pinmaps_init(void); |
95 | void __init snowball_pinmaps_init(void); | 95 | void __init snowball_pinmaps_init(void); |
96 | void __init hrefv60_pinmaps_init(void); | 96 | void __init hrefv60_pinmaps_init(void); |
97 | void mop500_msp_init(struct device *parent); | ||
97 | 98 | ||
98 | int __init mop500_uib_init(void); | 99 | int __init mop500_uib_init(void); |
99 | void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, | 100 | void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, |