Commit 6cefb626 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoC: pcm1789: Make pcm1789_common_exit() return void

This function returns zero unconditionally, so there isn't any benefit
of returning a value. Make it return void to be able to see at a glance
that the return value of pcm1789_i2c_remove() is always zero.

This patch is a preparation for making i2c remove callbacks return void.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220425193023.61046-1-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c85f533d
......@@ -29,7 +29,9 @@ static int pcm1789_i2c_probe(struct i2c_client *client)
static int pcm1789_i2c_remove(struct i2c_client *client)
{
return pcm1789_common_exit(&client->dev);
pcm1789_common_exit(&client->dev);
return 0;
}
#ifdef CONFIG_OF
......
......@@ -259,13 +259,11 @@ int pcm1789_common_init(struct device *dev, struct regmap *regmap)
}
EXPORT_SYMBOL_GPL(pcm1789_common_init);
int pcm1789_common_exit(struct device *dev)
void pcm1789_common_exit(struct device *dev)
{
struct pcm1789_private *priv = dev_get_drvdata(dev);
flush_work(&priv->work);
return 0;
}
EXPORT_SYMBOL_GPL(pcm1789_common_exit);
......
......@@ -12,6 +12,6 @@
extern const struct regmap_config pcm1789_regmap_config;
int pcm1789_common_init(struct device *dev, struct regmap *regmap);
int pcm1789_common_exit(struct device *dev);
void pcm1789_common_exit(struct device *dev);
#endif
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