diff options
author | lazhao <lazhao@nvidia.com> | 2010-10-15 19:38:49 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2010-10-27 15:08:28 -0700 |
commit | 6c61a8a4857a7b3740865a4a334604fb4bf44eed (patch) | |
tree | 8d9dc991702f7ef53deaaa65092d5fd5e7b59384 /drivers | |
parent | 797f33814d5544e52927786762fb3df67e46c30d (diff) |
[[ARM/Tegra] Clean up build warning message
Clean up warning message caused by unused variable and
improper struct type.
Bug 682070
Change-Id: I3409ad22e67252df14d6d14898aa8792a0019574
Reviewed-on: http://git-master/r/8436
Reviewed-by: Lance Zhao <lazhao@nvidia.com>
Tested-by: Lance Zhao <lazhao@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-tegra.c | 1 | ||||
-rwxr-xr-x | drivers/serial/tegra_hsuart.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index b74f93f14753..68eeaeca5228 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c @@ -418,7 +418,6 @@ static int tegra_rtc_suspend(struct platform_device *pdev, pm_message_t state) static int tegra_rtc_resume(struct platform_device *pdev) { struct device *dev=&pdev->dev; - unsigned long sl_irq_flags; unsigned int intr_status; /* clear */ diff --git a/drivers/serial/tegra_hsuart.c b/drivers/serial/tegra_hsuart.c index 61ce3dbb9903..941593ef7318 100755 --- a/drivers/serial/tegra_hsuart.c +++ b/drivers/serial/tegra_hsuart.c @@ -1124,7 +1124,7 @@ static void tegra_set_baudrate(struct tegra_uart_port *t, unsigned int baud) baud_actual = divisor ? rate / (16 * divisor) : 0; baud_delta = abs(baud_actual - baud); if (WARN_ON(baud_delta * 20 > baud)) { - dev_err(t->uport.dev, "requested baud %lu, actual %lu\n", baud, baud_actual); + dev_err(t->uport.dev, "requested baud %u, actual %u\n", baud, baud_actual); } lcr = t->lcr_shadow; diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index ea7d9d6182bb..2e9c9041534e 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -1152,6 +1152,7 @@ static int fsl_get_frame(struct usb_gadget *gadget) return (int)(fsl_readl(&dr_regs->frindex) & USB_FRINDEX_MASKS); } +#ifndef CONFIG_USB_ANDROID /*----------------------------------------------------------------------- * Tries to wake up the host connected to this gadget -----------------------------------------------------------------------*/ @@ -1173,6 +1174,7 @@ static int fsl_wakeup(struct usb_gadget *gadget) fsl_writel(portsc, &dr_regs->portsc1); return 0; } +#endif static int can_pullup(struct fsl_udc *udc) { @@ -1979,7 +1981,7 @@ static void reset_irq(struct fsl_udc *udc) */ static void fsl_udc_charger_detection(struct work_struct* work) { - struct fsl_udc *udc = container_of (work, struct fsl_udc, work); + struct fsl_udc *udc = container_of (work, struct fsl_udc, work.work); /* check for the platform charger detection */ if (platform_udc_charger_detection()) { |