mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
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:
parent
19248d867b
commit
9bd3e889d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user