mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 03:33:58 +08:00
ASoC: wm5100: Fix warnings from recent patches
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
15b52f10ec
commit
5509f2f80c
@ -1346,7 +1346,7 @@ static int wm5100_set_bias_level(struct snd_soc_codec *codec,
|
|||||||
enum snd_soc_bias_level level)
|
enum snd_soc_bias_level level)
|
||||||
{
|
{
|
||||||
struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
|
struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
|
||||||
int ret, i;
|
int ret;
|
||||||
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case SND_SOC_BIAS_ON:
|
case SND_SOC_BIAS_ON:
|
||||||
@ -2504,7 +2504,6 @@ err_gpio:
|
|||||||
static int wm5100_remove(struct snd_soc_codec *codec)
|
static int wm5100_remove(struct snd_soc_codec *codec)
|
||||||
{
|
{
|
||||||
struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
|
struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
|
||||||
struct i2c_client *i2c = to_i2c_client(codec->dev);
|
|
||||||
|
|
||||||
if (wm5100->pdata.hp_pol) {
|
if (wm5100->pdata.hp_pol) {
|
||||||
gpio_free(wm5100->pdata.hp_pol);
|
gpio_free(wm5100->pdata.hp_pol);
|
||||||
|
Loading…
Reference in New Issue
Block a user