gpio: gpio-74x164: Remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
7af2755d78
commit
49f1d6bc5a
1 changed files with 0 additions and 3 deletions
|
@ -176,7 +176,6 @@ static int gen_74x164_probe(struct spi_device *spi)
|
|||
return ret;
|
||||
|
||||
exit_destroy:
|
||||
spi_set_drvdata(spi, NULL);
|
||||
mutex_destroy(&chip->lock);
|
||||
return ret;
|
||||
}
|
||||
|
@ -190,8 +189,6 @@ static int gen_74x164_remove(struct spi_device *spi)
|
|||
if (chip == NULL)
|
||||
return -ENODEV;
|
||||
|
||||
spi_set_drvdata(spi, NULL);
|
||||
|
||||
ret = gpiochip_remove(&chip->gpio_chip);
|
||||
if (!ret)
|
||||
mutex_destroy(&chip->lock);
|
||||
|
|
Loading…
Reference in a new issue