ASoC: Remove return value checking for gpiochip_remove()

gpiochip_remove() will return void eventually.
Thus this patch removes return value checking for gpiochip_remove().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Axel Lin 2014-09-17 20:58:02 +08:00 committed by Mark Brown
parent 44caf76480
commit 5d5e63af99
5 changed files with 5 additions and 22 deletions

View File

@ -3274,11 +3274,8 @@ static void rt5677_init_gpio(struct i2c_client *i2c)
static void rt5677_free_gpio(struct i2c_client *i2c) static void rt5677_free_gpio(struct i2c_client *i2c)
{ {
struct rt5677_priv *rt5677 = i2c_get_clientdata(i2c); struct rt5677_priv *rt5677 = i2c_get_clientdata(i2c);
int ret;
ret = gpiochip_remove(&rt5677->gpio_chip); gpiochip_remove(&rt5677->gpio_chip);
if (ret != 0)
dev_err(&i2c->dev, "Failed to remove GPIOs: %d\n", ret);
} }
#else #else
static void rt5677_init_gpio(struct i2c_client *i2c) static void rt5677_init_gpio(struct i2c_client *i2c)

View File

@ -2319,11 +2319,8 @@ static void wm5100_init_gpio(struct i2c_client *i2c)
static void wm5100_free_gpio(struct i2c_client *i2c) static void wm5100_free_gpio(struct i2c_client *i2c)
{ {
struct wm5100_priv *wm5100 = i2c_get_clientdata(i2c); struct wm5100_priv *wm5100 = i2c_get_clientdata(i2c);
int ret;
ret = gpiochip_remove(&wm5100->gpio_chip); gpiochip_remove(&wm5100->gpio_chip);
if (ret != 0)
dev_err(&i2c->dev, "Failed to remove GPIOs: %d\n", ret);
} }
#else #else
static void wm5100_init_gpio(struct i2c_client *i2c) static void wm5100_init_gpio(struct i2c_client *i2c)

View File

@ -1877,11 +1877,7 @@ static void wm8903_init_gpio(struct wm8903_priv *wm8903)
static void wm8903_free_gpio(struct wm8903_priv *wm8903) static void wm8903_free_gpio(struct wm8903_priv *wm8903)
{ {
int ret; gpiochip_remove(&wm8903->gpio_chip);
ret = gpiochip_remove(&wm8903->gpio_chip);
if (ret != 0)
dev_err(wm8903->dev, "Failed to remove GPIOs: %d\n", ret);
} }
#else #else
static void wm8903_init_gpio(struct wm8903_priv *wm8903) static void wm8903_init_gpio(struct wm8903_priv *wm8903)

View File

@ -3398,11 +3398,8 @@ static void wm8962_init_gpio(struct snd_soc_codec *codec)
static void wm8962_free_gpio(struct snd_soc_codec *codec) static void wm8962_free_gpio(struct snd_soc_codec *codec)
{ {
struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec); struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec);
int ret;
ret = gpiochip_remove(&wm8962->gpio_chip); gpiochip_remove(&wm8962->gpio_chip);
if (ret != 0)
dev_err(codec->dev, "Failed to remove GPIOs: %d\n", ret);
} }
#else #else
static void wm8962_init_gpio(struct snd_soc_codec *codec) static void wm8962_init_gpio(struct snd_soc_codec *codec)

View File

@ -2216,11 +2216,7 @@ static void wm8996_init_gpio(struct wm8996_priv *wm8996)
static void wm8996_free_gpio(struct wm8996_priv *wm8996) static void wm8996_free_gpio(struct wm8996_priv *wm8996)
{ {
int ret; gpiochip_remove(&wm8996->gpio_chip);
ret = gpiochip_remove(&wm8996->gpio_chip);
if (ret != 0)
dev_err(wm8996->dev, "Failed to remove GPIOs: %d\n", ret);
} }
#else #else
static void wm8996_init_gpio(struct wm8996_priv *wm8996) static void wm8996_init_gpio(struct wm8996_priv *wm8996)