mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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>
This commit is contained in:
parent
63808bbb3e
commit
250b4ca0c9
@ -24,7 +24,6 @@
|
||||
#include <linux/types.h>
|
||||
|
||||
struct ntxec_pwm {
|
||||
struct device *dev;
|
||||
struct ntxec *ec;
|
||||
struct pwm_chip chip;
|
||||
};
|
||||
@ -148,7 +147,6 @@ static int ntxec_pwm_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
|
||||
priv->ec = ec;
|
||||
priv->dev = &pdev->dev;
|
||||
|
||||
chip = &priv->chip;
|
||||
chip->dev = &pdev->dev;
|
||||
|
Loading…
Reference in New Issue
Block a user