Commit 250b4ca0 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 63808bbb
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment