diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2012-07-25 10:22:32 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-02 17:37:27 -0700 |
commit | fdd994075a8525d702e67eb76a296f5bf80b8b8d (patch) | |
tree | b554ed86a61b10644b5ae2c529455642383056a4 /drivers/usb/otg | |
parent | 7c0739af09b7d0c0233587942180e83e77d3b921 (diff) |
usb: otg: tegra: enable warning as error flag
-enable warnings as errors compilation flag
-handle errors of missing semicolon and mismatched argument type
bug 949219
Change-Id: I29b1c08c590c94fa1aa43a9e37abf0385e3597d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118235
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/usb/otg')
-rw-r--r-- | drivers/usb/otg/Makefile | 1 | ||||
-rw-r--r-- | drivers/usb/otg/tegra-otg.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/otg/Makefile b/drivers/usb/otg/Makefile index 0bc9935c2180..0ef95e45a583 100644 --- a/drivers/usb/otg/Makefile +++ b/drivers/usb/otg/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_USB_OTG_UTILS) += otg_id.o # transceiver drivers obj-$(CONFIG_USB_GPIO_VBUS) += gpio_vbus.o +CFLAGS_tegra-otg.o = -Werror obj-$(CONFIG_USB_TEGRA_OTG) += tegra-otg.o obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o obj-$(CONFIG_TWL4030_USB) += twl4030-usb.o diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c index 0519c86fa7c7..dfbc3ea3c464 100644 --- a/drivers/usb/otg/tegra-otg.c +++ b/drivers/usb/otg/tegra-otg.c @@ -62,7 +62,7 @@ struct tegra_otg_data { bool clk_enabled; bool interrupt_mode; bool builtin_host; - bool suspended + bool suspended; }; static struct tegra_otg_data *tegra_clone; @@ -355,7 +355,7 @@ static ssize_t store_host_en(struct device *dev, struct device_attribute *attr, { struct platform_device *pdev = to_platform_device(dev); struct tegra_otg_data *tegra = platform_get_drvdata(pdev); - unsigned long host; + unsigned int host; if (sscanf(buf, "%d", &host) != 1 || host < 0 || host > 1) return -EINVAL; |