Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Linus Walleij
db04030a 035b2f7c

-3
-3
drivers/gpio/gpio-max730x.c
··· 220 220 return ret; 221 221 222 222 exit_destroy: 223 - dev_set_drvdata(dev, NULL); 224 223 mutex_destroy(&ts->lock); 225 224 return ret; 226 225 } ··· 232 233 233 234 if (ts == NULL) 234 235 return -ENODEV; 235 - 236 - dev_set_drvdata(dev, NULL); 237 236 238 237 /* Power down the chip and disable IRQ output */ 239 238 ts->write(dev, 0x04, 0x00);