arm: tegra: cardhu: pm298: Fix SDMMC regulator registration
Jin Park [Thu, 6 Oct 2011 07:20:47 +0000 (16:20 +0900)]
Use the device driver name instead of encoding the SDMMC controller
in the regulator supply name.
This change is came from commit 676dd57f8eb252ce61807c02e5153b4ee4e29418,
and it was reviewd on http://git-master/r/#change,53783.

Reviewed-on: http://git-master/r/56368
(cherry picked from commit 03aa6082f7db7006de6e9c357fcf04e0d395fb16)
Signed-off-by: Jin Park <jinyoungp@nvidia.com>

Change-Id: If80057e52feb29598e2b6bff2e729277f7828531
Reviewed-on: http://git-master/r/65065
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rdb7c61e477e59a56237e0ea89c37848552842323

arch/arm/mach-tegra/board-cardhu-pm298-power-rails.c

index eb51e4e..a3c3b54 100644 (file)
@@ -76,7 +76,7 @@ static struct regulator_consumer_supply max77663_sd2_supply[] = {
        REGULATOR_SUPPLY("ldo8", NULL),
        REGULATOR_SUPPLY("vcore_audio", NULL),
        REGULATOR_SUPPLY("avcore_audio", NULL),
-       REGULATOR_SUPPLY("vddio_sdmmc3", NULL),
+       REGULATOR_SUPPLY("vddio_sdmmc", "sdhci-tegra.2"),
        REGULATOR_SUPPLY("pwrdet_sdmmc3", NULL),
        REGULATOR_SUPPLY("vcore1_lpddr2", NULL),
        REGULATOR_SUPPLY("vcom_1v8", NULL),
@@ -119,7 +119,7 @@ static struct regulator_consumer_supply max77663_ldo2_supply[] = {
 };
 
 static struct regulator_consumer_supply max77663_ldo3_supply[] = {
-       REGULATOR_SUPPLY("vddio_sdmmc4", NULL),
+       REGULATOR_SUPPLY("vddio_sdmmc", "sdhci-tegra.3"),
        REGULATOR_SUPPLY("pwrdet_sdmmc4", NULL),
 };
 
@@ -128,7 +128,7 @@ static struct regulator_consumer_supply max77663_ldo4_supply[] = {
 };
 
 static struct regulator_consumer_supply max77663_ldo5_supply[] = {
-       REGULATOR_SUPPLY("vddio_sdmmc1", NULL),
+       REGULATOR_SUPPLY("vddio_sdmmc", "sdhci-tegra.0"),
        REGULATOR_SUPPLY("pwrdet_sdmmc1", NULL),
 };
 
@@ -512,7 +512,7 @@ static int gpio_switch_en_vdd_com_voltages[] = { 3300};
 
 /* EN_VDD_SDMMC1 from AP GPIO VI_HSYNC D07*/
 static struct regulator_consumer_supply gpio_switch_en_vdd_sdmmc1_supply[] = {
-       REGULATOR_SUPPLY("vddio_sd_slot", NULL),
+       REGULATOR_SUPPLY("vddio_sd_slot", "sdhci-tegra.0"),
 };
 static int gpio_switch_en_vdd_sdmmc1_voltages[] = { 3300};