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

Commit f1aa6ffe authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: codecs: Fix function prototype for component remove



Fix the function prototypes for WCD93xx and WSA881x based
codecs.

Change-Id: Ie152dbe62c5b70db8a12853938740d16fef619f5
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent af472119
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8972,7 +8972,7 @@ static int tomtom_codec_probe(struct snd_soc_component *component)
	devm_kfree(codec->dev, tomtom);
	return ret;
}
static int tomtom_codec_remove(struct snd_soc_component *component)
static void tomtom_codec_remove(struct snd_soc_component *component)
{
	struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
	struct tomtom_priv *tomtom = snd_soc_codec_get_drvdata(codec);
@@ -9000,7 +9000,6 @@ static int tomtom_codec_remove(struct snd_soc_component *component)
	tomtom->spkdrv2_reg = NULL;

	devm_kfree(codec->dev, tomtom);
	return 0;
}

static struct regmap *tomtom_get_regmap(struct device *dev)
+1 −3
Original line number Diff line number Diff line
@@ -13742,7 +13742,7 @@ static int tasha_codec_probe(struct snd_soc_component *component)
	return ret;
}

static int tasha_codec_remove(struct snd_soc_component *component)
static void tasha_codec_remove(struct snd_soc_component *component)
{
	struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
	struct tasha_priv *tasha = snd_soc_codec_get_drvdata(codec);
@@ -13755,8 +13755,6 @@ static int tasha_codec_remove(struct snd_soc_component *component)
	tasha_cleanup_irqs(tasha);
	/* Cleanup MBHC */
	/* Cleanup resmgr */

	return 0;
}

static struct regmap *tasha_get_regmap(struct device *dev)
+1 −3
Original line number Diff line number Diff line
@@ -9028,7 +9028,7 @@ static int tavil_soc_codec_probe(struct snd_soc_component *component)
	return ret;
}

static int tavil_soc_codec_remove(struct snd_soc_component *component)
static void tavil_soc_codec_remove(struct snd_soc_component *component)
{
	struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
	struct wcd9xxx *control;
@@ -9046,8 +9046,6 @@ static int tavil_soc_codec_remove(struct snd_soc_component *component)
	/* Deinitialize MBHC module */
	tavil_mbhc_deinit(codec);
	tavil->mbhc = NULL;

	return 0;
}

static struct regmap *tavil_get_regmap(struct device *dev)
+1 −2
Original line number Diff line number Diff line
@@ -1074,7 +1074,7 @@ static int wsa881x_probe(struct snd_soc_component *component)
	return 0;
}

static int wsa881x_remove(struct snd_soc_component *component)
static void wsa881x_remove(struct snd_soc_component *component)
{
	struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
	struct wsa881x_pdata *wsa881x = snd_soc_codec_get_drvdata(codec);
@@ -1084,7 +1084,6 @@ static int wsa881x_remove(struct snd_soc_component *component)

	mutex_destroy(&wsa881x->bg_lock);
	mutex_destroy(&wsa881x->res_lock);
	return 0;
}

static struct snd_soc_codec_driver soc_codec_dev_wsa881x = {
+1 −3
Original line number Diff line number Diff line
@@ -1053,7 +1053,7 @@ static int wsa881x_probe(struct snd_soc_component *component)
	return 0;
}

static int wsa881x_remove(struct snd_soc_component *component)
static void wsa881x_remove(struct snd_soc_component *component)
{
	struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
	struct wsa881x_priv *wsa881x = snd_soc_codec_get_drvdata(codec);
@@ -1062,8 +1062,6 @@ static int wsa881x_remove(struct snd_soc_component *component)
		wsa881x_deinit_thermal(wsa881x->tz_pdata.tz_dev);
	mutex_destroy(&wsa881x->bg_lock);
	mutex_destroy(&wsa881x->res_lock);

	return 0;
}

static struct regmap *wsa881x_get_regmap(struct device *dev)