msm: rotator: Pass device pointers to regulator_get()
Passing a device pointer instead of NULL as the first argument
to regulator_get() allows the device to be taken into
account when finding a matching regulator. This removes the need
to specify a unique regulator_name in platform data.
Change-Id: Id16f85866c94b3f3b57aa720cdfbdcf3e2fd241d
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-msm7x30.c b/arch/arm/mach-msm/devices-msm7x30.c
index 489c32d..e055579 100644
--- a/arch/arm/mach-msm/devices-msm7x30.c
+++ b/arch/arm/mach-msm/devices-msm7x30.c
@@ -1187,7 +1187,6 @@
.number_of_clocks = ARRAY_SIZE(rotator_clocks),
.hardware_version_number = 0x1000303,
.rotator_clks = rotator_clocks,
- .regulator_name = "fs_rot",
};
struct platform_device msm_rotator_device = {
@@ -1349,7 +1348,7 @@
FS_PCOM(FS_GFX3D, "vdd", "kgsl-3d0.0"),
FS_PCOM(FS_MDP, "vdd", "mdp.0"),
FS_PCOM(FS_MFC, "fs_mfc", NULL),
- FS_PCOM(FS_ROT, "fs_rot", NULL),
+ FS_PCOM(FS_ROT, "vdd", "msm_rotator.0"),
FS_PCOM(FS_VFE, "fs_vfe", NULL),
FS_PCOM(FS_VPE, "fs_vpe", NULL),
};