diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-18 09:32:36 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-18 09:32:44 +0100 |
commit | 760a52e80fdf018a9f83a499427923e18e3bd582 (patch) | |
tree | b37743abb28d9109ce6278b8a896712e713bb25a /drivers/pinctrl/nomadik/pinctrl-abx500.c | |
parent | 0395442ad25853f50d515f4dc00e3475b0df920d (diff) | |
parent | 47b6308b643302e642ca2a5cb6470926f7e1c428 (diff) | |
download | linux-760a52e80fdf018a9f83a499427923e18e3bd582.tar.gz linux-760a52e80fdf018a9f83a499427923e18e3bd582.tar.bz2 linux-760a52e80fdf018a9f83a499427923e18e3bd582.zip |
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
This brings in some mwifiex changes that further patches will
need to work on top to not cause merge conflicts.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/pinctrl/nomadik/pinctrl-abx500.c')
-rw-r--r-- | drivers/pinctrl/nomadik/pinctrl-abx500.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-abx500.c b/drivers/pinctrl/nomadik/pinctrl-abx500.c index 47f493149863..228972827132 100644 --- a/drivers/pinctrl/nomadik/pinctrl-abx500.c +++ b/drivers/pinctrl/nomadik/pinctrl-abx500.c @@ -1174,7 +1174,7 @@ static int abx500_gpio_probe(struct platform_device *pdev) const struct of_device_id *match; struct abx500_pinctrl *pct; unsigned int id = -1; - int ret, err; + int ret; int i; if (!np) { @@ -1266,10 +1266,7 @@ static int abx500_gpio_probe(struct platform_device *pdev) return 0; out_rem_chip: - err = gpiochip_remove(&pct->chip); - if (err) - dev_info(&pdev->dev, "failed to remove gpiochip\n"); - + gpiochip_remove(&pct->chip); return ret; } @@ -1280,15 +1277,8 @@ out_rem_chip: static int abx500_gpio_remove(struct platform_device *pdev) { struct abx500_pinctrl *pct = platform_get_drvdata(pdev); - int ret; - - ret = gpiochip_remove(&pct->chip); - if (ret < 0) { - dev_err(pct->dev, "unable to remove gpiochip: %d\n", - ret); - return ret; - } + gpiochip_remove(&pct->chip); return 0; } |