aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-max730x.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-12-21 02:25:38 -0500
committerLinus Walleij <linus.walleij@linaro.org>2014-01-02 07:54:34 -0500
commitdb04030ab2500c5a0eb234ad8dc4e106829c5c71 (patch)
tree1bbb690038d57147953c1fb5729e545d3e2d4d4c /drivers/gpio/gpio-max730x.c
parent035b2f7c8e64f2c7f87e1e11373b17c5dd1fbff4 (diff)
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>
Diffstat (limited to 'drivers/gpio/gpio-max730x.c')
-rw-r--r--drivers/gpio/gpio-max730x.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-max730x.c b/drivers/gpio/gpio-max730x.c
index 89226a36b08c..8672755f95c9 100644
--- a/drivers/gpio/gpio-max730x.c
+++ b/drivers/gpio/gpio-max730x.c
@@ -220,7 +220,6 @@ int __max730x_probe(struct max7301 *ts)
220 return ret; 220 return ret;
221 221
222exit_destroy: 222exit_destroy:
223 dev_set_drvdata(dev, NULL);
224 mutex_destroy(&ts->lock); 223 mutex_destroy(&ts->lock);
225 return ret; 224 return ret;
226} 225}
@@ -234,8 +233,6 @@ int __max730x_remove(struct device *dev)
234 if (ts == NULL) 233 if (ts == NULL)
235 return -ENODEV; 234 return -ENODEV;
236 235
237 dev_set_drvdata(dev, NULL);
238
239 /* Power down the chip and disable IRQ output */ 236 /* Power down the chip and disable IRQ output */
240 ts->write(dev, 0x04, 0x00); 237 ts->write(dev, 0x04, 0x00);
241 238