usb: otg: tegra: fix compilations errors
Rakesh Bodla [Wed, 8 Aug 2012 06:48:03 +0000 (11:48 +0530)]
Werror flag is enabled now. Fixing the compilations
errors when DEBUG is enabled.

Change-Id: I909dd177eedfd72f1f71d1a546fc40c301bd1aa7
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/122033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit eb623030d171e1369760107886636f2985b39fc3)
Reviewed-on: http://git-master/r/123484
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/usb/otg/tegra-otg.c

index 0519c86..a0043db 100644 (file)
@@ -230,7 +230,7 @@ static void irq_work(struct work_struct *work)
        status = tegra->int_status;
 
        /* Debug prints */
-       DBG("%s(%d) status = 0x%x\n", __func__, __LINE__, status);
+       DBG("%s(%d) status = 0x%lx\n", __func__, __LINE__, status);
        if ((status & USB_ID_INT_STATUS) &&
                        (status & USB_VBUS_INT_STATUS))
                DBG("%s(%d) got vbus & id interrupt\n", __func__, __LINE__);
@@ -260,10 +260,10 @@ static irqreturn_t tegra_otg_irq(int irq, void *data)
 
        spin_lock_irqsave(&tegra->lock, flags);
        val = otg_readl(tegra, USB_PHY_WAKEUP);
-       DBG("%s(%d) interrupt val = 0x%x\n", __func__, __LINE__, val);
+       DBG("%s(%d) interrupt val = 0x%lx\n", __func__, __LINE__, val);
 
        if (val & (USB_VBUS_INT_EN | USB_ID_INT_EN)) {
-               DBG("%s(%d) PHY_WAKEUP = 0x%x\n", __func__, __LINE__, val);
+               DBG("%s(%d) PHY_WAKEUP = 0x%lx\n", __func__, __LINE__, val);
                otg_writel(tegra, val, USB_PHY_WAKEUP);
                if ((val & USB_ID_INT_STATUS) || (val & USB_VBUS_INT_STATUS)) {
                        tegra->int_status = val;