summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorSanjay Singh Rawat <srawat@nvidia.com>2012-07-02 12:50:59 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-07-05 06:48:00 -0700
commitc7c5f43ebdfb60e0cc9ab7c0c8c98c38e16cd908 (patch)
tree6ddaf8c199cbbe7f128d0060ff623f05c18f8f82 /drivers/misc
parentdbd9e0f5582395731135f6266aff55661b10e251 (diff)
misc: tegra-baseband: treat compilation warning as error
- Handling warning of wrong return type from function. bug 949219 Change-Id: I49e74de9314ee4934a5a58a8e406f9bade278aaf Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/112906 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/tegra-baseband/Makefile2
-rw-r--r--drivers/misc/tegra-baseband/bb-m7400.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/misc/tegra-baseband/Makefile b/drivers/misc/tegra-baseband/Makefile
index a95d84dbf117..68ec4fe83ac1 100644
--- a/drivers/misc/tegra-baseband/Makefile
+++ b/drivers/misc/tegra-baseband/Makefile
@@ -2,5 +2,7 @@
# Makefile for tegra baseband support.
#
+subdir-ccflags-y := -Werror
+
obj-$(CONFIG_TEGRA_BB_POWER) += bb-power.o
obj-$(CONFIG_TEGRA_BB_M7400) += bb-m7400.o
diff --git a/drivers/misc/tegra-baseband/bb-m7400.c b/drivers/misc/tegra-baseband/bb-m7400.c
index 99698a860917..adabefdb100d 100644
--- a/drivers/misc/tegra-baseband/bb-m7400.c
+++ b/drivers/misc/tegra-baseband/bb-m7400.c
@@ -108,27 +108,26 @@ static void m7400_apdown_handshake(void)
gpio_set_value(gpio_awr, 0);
}
-static int m7400_l2_suspend(void)
+static void m7400_l2_suspend(void)
{
/* Gets called for two cases :
a) Port suspend.
b) Bus suspend. */
if (modem_status == BBSTATE_L2)
- return 0;
+ return;
/* Post bus suspend: Drive ARR low. */
gpio_set_value(gpio_arr, 0);
modem_status = BBSTATE_L2;
- return 0;
}
-static int m7400_l2_resume(void)
+static void m7400_l2_resume(void)
{
/* Gets called for two cases :
a) L2 resume.
b) bus resume phase of L3 resume. */
if (modem_status == BBSTATE_L0)
- return 0;
+ return;
/* Pre bus resume: Drive ARR high. */
gpio_set_value(gpio_arr, 1);
@@ -138,10 +137,9 @@ static int m7400_l2_resume(void)
if (gpio_wait_timeout(gpio_cwr, 1, 10) != 0) {
pr_info("%s: Error: timeout waiting for modem ack.\n",
__func__);
- return -1;
+ return;
}
modem_status = BBSTATE_L0;
- return 0;
}
static void m7400_l3_suspend(void)
@@ -197,7 +195,7 @@ static void m7400_ehci_customize(struct platform_device *pdev)
{
struct tegra_usb_platform_data *ehci_pdata;
- ehci_pdata = (struct usb_platform_data *)
+ ehci_pdata = (struct tegra_usb_platform_data *)
pdev->dev.platform_data;
/* Register PHY callbacks */