diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-01-26 14:36:01 +0200 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-11-27 11:40:05 +0800 |
commit | 4d6aff2d392db7a62beb02ee4d536c7a29cd5eeb (patch) | |
tree | c1517f2e40f978749b677232eb8e462f70ba9153 | |
parent | cae9d6ca1c199fafbbe9cdd2def084b1672b753f (diff) |
OMAP: 4430SDP: Correct fixed regulator device IDtracking-topic-arch
The board has two fixed voltage regulator. Correct the
device ID for the vbat, which used -1.
Create defines for the fixed regulator IDs so when adding new
regulators we know the next available ID to use for them.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 3669c120c7e..4e2b27c600f 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -63,6 +63,9 @@ #define GPIO_WIFI_PMENA 54 #define GPIO_WIFI_IRQ 53 +#define FIXED_REG_VBAT_ID 0 +#define FIXED_REG_VWLAN_ID 1 + static const int sdp4430_keymap[] = { KEY(0, 0, KEY_E), KEY(0, 1, KEY_R), @@ -372,7 +375,7 @@ static struct fixed_voltage_config sdp4430_vbat_pdata = { static struct platform_device sdp4430_vbat = { .name = "reg-fixed-voltage", - .id = -1, + .id = FIXED_REG_VBAT_ID, .dev = { .platform_data = &sdp4430_vbat_pdata, }, @@ -488,7 +491,7 @@ static struct fixed_voltage_config sdp4430_vwlan = { static struct platform_device omap_vwlan_device = { .name = "reg-fixed-voltage", - .id = 1, + .id = FIXED_REG_VWLAN_ID, .dev = { .platform_data = &sdp4430_vwlan, }, |