diff options
author | Sanjay Singh Rawat <srawat@nvidia.com> | 2012-06-12 22:23:56 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-06-14 06:03:28 -0700 |
commit | 57f3c5da56ca35b9741be9b8b5593bfec1bdf32a (patch) | |
tree | 40a504d41b20d271bbba20444dfb18faec6d9ec1 /arch/arm/mach-tegra/board-cardhu.c | |
parent | 63d14b312d5ae4657058a0c9bb8f5733e4e45e4b (diff) |
ARM: tegra: resolve compilation time warnings
- Adding flag to treat warning as error.
- Handling warnings of unused variable, structures and functions,
wrong return type, wrong type comparision.
Bug 949219
Change-Id: I9d02387ce1073c4e46f69d01669285aa3754f1d9
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/104968
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.c')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu.c | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.c b/arch/arm/mach-tegra/board-cardhu.c index 458053d56fcd..6dc9b906a3af 100644 --- a/arch/arm/mach-tegra/board-cardhu.c +++ b/arch/arm/mach-tegra/board-cardhu.c @@ -881,6 +881,8 @@ static int __init cardhu_touch_init(void) return 0; } +#if defined(CONFIG_USB_SUPPORT) + static void cardu_usb_hsic_postsupend(void) { #ifdef CONFIG_TEGRA_BB_XMM_POWER @@ -936,7 +938,7 @@ static struct tegra_usb_platform_data tegra_ehci2_hsic_xmm_pdata = { }, .ops = &hsic_xmm_plat_ops, }; - +#endif static int hsic_enable_gpio = -1; static int hsic_reset_gpio = -1; @@ -998,6 +1000,7 @@ void hsic_power_off(void) } } +#if defined(CONFIG_USB_SUPPORT) static struct tegra_usb_phy_platform_ops hsic_plat_ops = { .open = hsic_platform_open, .close = hsic_platform_close, @@ -1050,15 +1053,14 @@ static struct tegra_usb_platform_data tegra_udc_pdata = { }, }; -static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = { - .port_otg = true, +static struct tegra_usb_platform_data tegra_ehci2_utmi_pdata = { + .port_otg = false, .has_hostpc = true, .phy_intf = TEGRA_USB_PHY_INTF_UTMI, - .op_mode = TEGRA_USB_OPMODE_HOST, + .op_mode = TEGRA_USB_OPMODE_HOST, .u_data.host = { .vbus_gpio = -1, - .vbus_reg = "vdd_vbus_micro_usb", - .hot_plug = true, + .hot_plug = false, .remote_wakeup_supported = true, .power_off_on_suspend = true, }, @@ -1075,14 +1077,15 @@ static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = { }, }; -static struct tegra_usb_platform_data tegra_ehci2_utmi_pdata = { +static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = { .port_otg = false, .has_hostpc = true, .phy_intf = TEGRA_USB_PHY_INTF_UTMI, - .op_mode = TEGRA_USB_OPMODE_HOST, + .op_mode = TEGRA_USB_OPMODE_HOST, .u_data.host = { .vbus_gpio = -1, - .hot_plug = false, + .vbus_reg = "vdd_vbus_typea_usb", + .hot_plug = true, .remote_wakeup_supported = true, .power_off_on_suspend = true, }, @@ -1091,7 +1094,7 @@ static struct tegra_usb_platform_data tegra_ehci2_utmi_pdata = { .elastic_limit = 16, .idle_wait_delay = 17, .term_range_adj = 6, - .xcvr_setup = 15, + .xcvr_setup = 8, .xcvr_lsfslew = 2, .xcvr_lsrslew = 2, .xcvr_setup_offset = 0, @@ -1099,14 +1102,14 @@ static struct tegra_usb_platform_data tegra_ehci2_utmi_pdata = { }, }; -static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = { - .port_otg = false, +static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = { + .port_otg = true, .has_hostpc = true, .phy_intf = TEGRA_USB_PHY_INTF_UTMI, - .op_mode = TEGRA_USB_OPMODE_HOST, + .op_mode = TEGRA_USB_OPMODE_HOST, .u_data.host = { .vbus_gpio = -1, - .vbus_reg = "vdd_vbus_typea_usb", + .vbus_reg = "vdd_vbus_micro_usb", .hot_plug = true, .remote_wakeup_supported = true, .power_off_on_suspend = true, @@ -1116,7 +1119,7 @@ static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = { .elastic_limit = 16, .idle_wait_delay = 17, .term_range_adj = 6, - .xcvr_setup = 8, + .xcvr_setup = 15, .xcvr_lsfslew = 2, .xcvr_lsrslew = 2, .xcvr_setup_offset = 0, @@ -1128,8 +1131,9 @@ static struct tegra_usb_otg_data tegra_otg_pdata = { .ehci_device = &tegra_ehci1_device, .ehci_pdata = &tegra_ehci1_utmi_pdata, }; +#endif -#if CONFIG_USB_SUPPORT +#if defined(CONFIG_USB_SUPPORT) static void cardhu_usb_init(void) { struct board_info bi; |