Commit 0f884099 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoC: tlv320aic32x4: Make aic32x4_remove() return void

Up to now aic32x4_remove() returns zero unconditionally. Make it return
void instead which makes it easier to see in the callers that there is
no error to handle.

Also the return value of i2c and spi remove callbacks is ignored anyway.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211015071113.2795767-1-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b8f3b564
...@@ -44,7 +44,9 @@ static int aic32x4_i2c_probe(struct i2c_client *i2c, ...@@ -44,7 +44,9 @@ static int aic32x4_i2c_probe(struct i2c_client *i2c,
static int aic32x4_i2c_remove(struct i2c_client *i2c) static int aic32x4_i2c_remove(struct i2c_client *i2c)
{ {
return aic32x4_remove(&i2c->dev); aic32x4_remove(&i2c->dev);
return 0;
} }
static const struct i2c_device_id aic32x4_i2c_id[] = { static const struct i2c_device_id aic32x4_i2c_id[] = {
......
...@@ -48,7 +48,9 @@ static int aic32x4_spi_probe(struct spi_device *spi) ...@@ -48,7 +48,9 @@ static int aic32x4_spi_probe(struct spi_device *spi)
static int aic32x4_spi_remove(struct spi_device *spi) static int aic32x4_spi_remove(struct spi_device *spi)
{ {
return aic32x4_remove(&spi->dev); aic32x4_remove(&spi->dev);
return 0;
} }
static const struct spi_device_id aic32x4_spi_id[] = { static const struct spi_device_id aic32x4_spi_id[] = {
......
...@@ -1418,13 +1418,11 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap) ...@@ -1418,13 +1418,11 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap)
} }
EXPORT_SYMBOL(aic32x4_probe); EXPORT_SYMBOL(aic32x4_probe);
int aic32x4_remove(struct device *dev) void aic32x4_remove(struct device *dev)
{ {
struct aic32x4_priv *aic32x4 = dev_get_drvdata(dev); struct aic32x4_priv *aic32x4 = dev_get_drvdata(dev);
aic32x4_disable_regulators(aic32x4); aic32x4_disable_regulators(aic32x4);
return 0;
} }
EXPORT_SYMBOL(aic32x4_remove); EXPORT_SYMBOL(aic32x4_remove);
......
...@@ -18,7 +18,7 @@ enum aic32x4_type { ...@@ -18,7 +18,7 @@ enum aic32x4_type {
extern const struct regmap_config aic32x4_regmap_config; extern const struct regmap_config aic32x4_regmap_config;
int aic32x4_probe(struct device *dev, struct regmap *regmap); int aic32x4_probe(struct device *dev, struct regmap *regmap);
int aic32x4_remove(struct device *dev); void aic32x4_remove(struct device *dev);
int aic32x4_register_clocks(struct device *dev, const char *mclk_name); int aic32x4_register_clocks(struct device *dev, const char *mclk_name);
/* tlv320aic32x4 register space (in decimal to match datasheet) */ /* tlv320aic32x4 register space (in decimal to match datasheet) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment