Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eba84320 authored by Tushar Behera's avatar Tushar Behera Committed by Mark Brown
Browse files

ASoC: max98090: Remove redundant max98090_handle_pdata()



max98090_handle_pdata() is not doing anything other than printing
a message if pdata is not valid. This can be removed.

Signed-off-by: default avatarTushar Behera <tushar.b@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 978b641f
Loading
Loading
Loading
Loading
+0 −13
Original line number Original line Diff line number Diff line
@@ -2200,17 +2200,6 @@ static struct snd_soc_dai_driver max98090_dai[] = {
}
}
};
};


static void max98090_handle_pdata(struct snd_soc_codec *codec)
{
	struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec);
	struct max98090_pdata *pdata = max98090->pdata;

	if (!pdata) {
		dev_err(codec->dev, "No platform data\n");
		return;
	}
}

static int max98090_probe(struct snd_soc_codec *codec)
static int max98090_probe(struct snd_soc_codec *codec)
{
{
	struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec);
	struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec);
@@ -2310,8 +2299,6 @@ static int max98090_probe(struct snd_soc_codec *codec)
	snd_soc_update_bits(codec, M98090_REG_MIC_BIAS_VOLTAGE,
	snd_soc_update_bits(codec, M98090_REG_MIC_BIAS_VOLTAGE,
		M98090_MBVSEL_MASK, M98090_MBVSEL_2V8);
		M98090_MBVSEL_MASK, M98090_MBVSEL_2V8);


	max98090_handle_pdata(codec);

	max98090_add_widgets(codec);
	max98090_add_widgets(codec);


err_access:
err_access: