Commit db04030a authored by Sachin Kamat's avatar Sachin Kamat Committed by Linus Walleij

gpio: max730x: Remove redundant dev_set_drvdata

Driver core sets it to NULL upon probe failure or release.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 035b2f7c
...@@ -220,7 +220,6 @@ int __max730x_probe(struct max7301 *ts) ...@@ -220,7 +220,6 @@ int __max730x_probe(struct max7301 *ts)
return ret; return ret;
exit_destroy: exit_destroy:
dev_set_drvdata(dev, NULL);
mutex_destroy(&ts->lock); mutex_destroy(&ts->lock);
return ret; return ret;
} }
...@@ -234,8 +233,6 @@ int __max730x_remove(struct device *dev) ...@@ -234,8 +233,6 @@ int __max730x_remove(struct device *dev)
if (ts == NULL) if (ts == NULL)
return -ENODEV; return -ENODEV;
dev_set_drvdata(dev, NULL);
/* Power down the chip and disable IRQ output */ /* Power down the chip and disable IRQ output */
ts->write(dev, 0x04, 0x00); ts->write(dev, 0x04, 0x00);
......
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