[PATCH v2 4/7] OMAP: 4430sdp: Correct fixed regulator device ID

From: Peter Ujfalusi
Date: Tue Feb 07 2012 - 08:03:15 EST


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@xxxxxx>
---
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 f4ac553..d02172d 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -62,6 +62,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),
@@ -368,7 +371,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,
},
@@ -478,7 +481,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,
},
--
1.7.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/