Skip to content

Commit 250b4ca

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: ntxec: Drop a write-only variable from driver data
.dev is assigned in .probe() and never read. So it serves no purpose and can be removed. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 63808bb commit 250b4ca

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pwm/pwm-ntxec.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <linux/types.h>
2525

2626
struct ntxec_pwm {
27-
struct device *dev;
2827
struct ntxec *ec;
2928
struct pwm_chip chip;
3029
};
@@ -148,7 +147,6 @@ static int ntxec_pwm_probe(struct platform_device *pdev)
148147
return -ENOMEM;
149148

150149
priv->ec = ec;
151-
priv->dev = &pdev->dev;
152150

153151
chip = &priv->chip;
154152
chip->dev = &pdev->dev;

0 commit comments

Comments
 (0)