diff options
author | Robert Marklund <robert.marklund@stericsson.com> | 2011-10-14 09:03:10 +0200 |
---|---|---|
committer | Philippe LANGLAIS <philippe.langlais@stericsson.com> | 2011-10-14 14:29:55 +0200 |
commit | 9eaba5c449992f71faafc2cf1d39c8fa1127b985 (patch) | |
tree | d0383315527c1fddf8bb9e51ff343f15a1507fc9 | |
parent | 4782066b55bb4328c611df737671daf80edf3131 (diff) |
cg2900: Fix merge problems
Remove dual setups so that we only run one
Remove unused labels and freeing of gpios
Change-Id: Ib8f21dcbec7bd8155a8c10448f515084143fab24
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34066
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
-rw-r--r-- | drivers/staging/cg2900/devices-cg2900.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/cg2900/devices-cg2900.c b/drivers/staging/cg2900/devices-cg2900.c index 9fb17c791d9..a0cc9aeff81 100644 --- a/drivers/staging/cg2900/devices-cg2900.c +++ b/drivers/staging/cg2900/devices-cg2900.c @@ -163,7 +163,6 @@ static int dcg2900_init(struct cg2900_chip_dev *dev) else err = dcg2900_u5500_setup(dev, info); - err = dcg2900_setup(dev, info); if (err) goto err_handling; @@ -181,7 +180,7 @@ static int dcg2900_init(struct cg2900_chip_dev *dev) "%s: Failed to get regulator '%s'\n", __func__, pdata->regulator_id); info->regulator_wlan = NULL; - goto err_handling_free_gpio_bt; + goto err_handling; } /* Enable it also */ err = regulator_enable(info->regulator_wlan); @@ -201,10 +200,6 @@ finished: return 0; err_handling_put_reg: regulator_put(info->regulator_wlan); -err_handling_free_gpio_bt: - gpio_free(info->bt_gpio); -err_handling_free_gpio_gbf: - gpio_free(info->gbf_gpio); err_handling: kfree(info); return err; |