pwm: img: Drop write-only variable from driver private data

struct img_pwm_chip::dev is only assigned to, but the member variable is
never used. So drop it.

Link: https://lore.kernel.org/r/7b7de753caa453c7fe591228c9a45d0baf8b5878.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
Uwe Kleine-König 2024-02-14 10:31:30 +01:00
parent 19248d867b
commit 9bd3e889d2

View File

@ -59,7 +59,6 @@ struct img_pwm_soc_data {
};
struct img_pwm_chip {
struct device *dev;
struct pwm_chip chip;
struct clk *pwm_clk;
struct clk *sys_clk;
@ -265,8 +264,6 @@ static int img_pwm_probe(struct platform_device *pdev)
if (!imgchip)
return -ENOMEM;
imgchip->dev = &pdev->dev;
imgchip->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(imgchip->base))
return PTR_ERR(imgchip->base);