mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
mfd: t7l66xb: Drop platform disable callback
[ Upstream commit128ac294e1] None of the in-tree instantiations of struct t7l66xb_platform_data provides a disable callback. So better don't dereference this function pointer unconditionally. As there is no user, drop it completely instead of calling it conditional. This is a preparation for making platform remove callbacks return void. Fixes:1f192015ca("mfd: driver for the T7L66XB TMIO SoC") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220530192430.2108217-3-u.kleine-koenig@pengutronix.de Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5a0e3350c2
commit
52ae9c1599
|
|
@ -405,11 +405,8 @@ static int t7l66xb_probe(struct platform_device *dev)
|
||||||
|
|
||||||
static int t7l66xb_remove(struct platform_device *dev)
|
static int t7l66xb_remove(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev);
|
|
||||||
struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
|
struct t7l66xb *t7l66xb = platform_get_drvdata(dev);
|
||||||
int ret;
|
|
||||||
|
|
||||||
ret = pdata->disable(dev);
|
|
||||||
clk_disable_unprepare(t7l66xb->clk48m);
|
clk_disable_unprepare(t7l66xb->clk48m);
|
||||||
clk_put(t7l66xb->clk48m);
|
clk_put(t7l66xb->clk48m);
|
||||||
clk_disable_unprepare(t7l66xb->clk32k);
|
clk_disable_unprepare(t7l66xb->clk32k);
|
||||||
|
|
@ -420,8 +417,7 @@ static int t7l66xb_remove(struct platform_device *dev)
|
||||||
mfd_remove_devices(&dev->dev);
|
mfd_remove_devices(&dev->dev);
|
||||||
kfree(t7l66xb);
|
kfree(t7l66xb);
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver t7l66xb_platform_driver = {
|
static struct platform_driver t7l66xb_platform_driver = {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
struct t7l66xb_platform_data {
|
struct t7l66xb_platform_data {
|
||||||
int (*enable)(struct platform_device *dev);
|
int (*enable)(struct platform_device *dev);
|
||||||
int (*disable)(struct platform_device *dev);
|
|
||||||
int (*suspend)(struct platform_device *dev);
|
int (*suspend)(struct platform_device *dev);
|
||||||
int (*resume)(struct platform_device *dev);
|
int (*resume)(struct platform_device *dev);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user