]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpio/gpio-mc33880.c
arm: dts: tx6: add some aliases and a label for backlight@0
[karo-tx-linux.git] / drivers / gpio / gpio-mc33880.c
index 3fd2caa4a2e02fd05a71022a522c51add55f5e66..c0b7835f513687fe8f0922ea1aaecc7e2e2ded91 100644 (file)
@@ -142,7 +142,6 @@ static int mc33880_probe(struct spi_device *spi)
        return ret;
 
 exit_destroy:
-       spi_set_drvdata(spi, NULL);
        mutex_destroy(&mc->lock);
        return ret;
 }
@@ -156,8 +155,6 @@ static int mc33880_remove(struct spi_device *spi)
        if (mc == NULL)
                return -ENODEV;
 
-       spi_set_drvdata(spi, NULL);
-
        ret = gpiochip_remove(&mc->chip);
        if (!ret)
                mutex_destroy(&mc->lock);