gpio: max730x: Remove redundant dev_set_drvdata
Driver core sets it to NULL upon probe failure or release. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
035b2f7c8e
commit
db04030ab2
|
@ -220,7 +220,6 @@ int __max730x_probe(struct max7301 *ts)
|
|||
return ret;
|
||||
|
||||
exit_destroy:
|
||||
dev_set_drvdata(dev, NULL);
|
||||
mutex_destroy(&ts->lock);
|
||||
return ret;
|
||||
}
|
||||
|
@ -234,8 +233,6 @@ int __max730x_remove(struct device *dev)
|
|||
if (ts == NULL)
|
||||
return -ENODEV;
|
||||
|
||||
dev_set_drvdata(dev, NULL);
|
||||
|
||||
/* Power down the chip and disable IRQ output */
|
||||
ts->write(dev, 0x04, 0x00);
|
||||
|
||||
|
|
Loading…
Reference in New Issue