summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/usb_phy.c
diff options
context:
space:
mode:
authorSanjay Singh Rawat <srawat@nvidia.com>2012-04-16 18:33:26 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-04-19 04:49:05 -0700
commitae081534395f749f880ce4f3ad72e65aa9a1cf72 (patch)
tree19aa9f485d3a8cea10a1b5faf8e78195d801fb40 /arch/arm/mach-tegra/usb_phy.c
parentf561fa95a9158dabd459e0956f74065cedc3ac5a (diff)
arm: tegra: resolve compilation time warnings
Bug 949219 Change-Id: I875f8688a272c415ebf345b8f30e4afdf7551b29 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/91523 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/usb_phy.c')
-rw-r--r--arch/arm/mach-tegra/usb_phy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c
index e1cfccea6e39..9412094ec505 100644
--- a/arch/arm/mach-tegra/usb_phy.c
+++ b/arch/arm/mach-tegra/usb_phy.c
@@ -1667,8 +1667,11 @@ static int utmi_phy_preresume(struct tegra_usb_phy *phy, bool remote_wakeup)
static int utmi_phy_postresume(struct tegra_usb_phy *phy, bool is_dpd)
{
unsigned long val;
+#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
void __iomem *base = phy->regs;
+#else
void __iomem *pmc_base = IO_ADDRESS(TEGRA_PMC_BASE);
+#endif
unsigned int inst = phy->instance;
#ifndef CONFIG_ARCH_TEGRA_2x_SOC