Commit 993c3792 authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov

Input: ad7877 - remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 49e6c574
......@@ -806,7 +806,6 @@ static int ad7877_probe(struct spi_device *spi)
err_free_mem:
input_free_device(input_dev);
kfree(ts);
spi_set_drvdata(spi, NULL);
return err;
}
......@@ -823,7 +822,6 @@ static int ad7877_remove(struct spi_device *spi)
kfree(ts);
dev_dbg(&spi->dev, "unregistered touchscreen\n");
spi_set_drvdata(spi, NULL);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment