mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
Input: tsc2005 - 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> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
3a229b70d6
commit
c7c8b533c7
@ -678,7 +678,6 @@ static int tsc2005_probe(struct spi_device *spi)
|
||||
err_remove_sysfs:
|
||||
sysfs_remove_group(&spi->dev.kobj, &tsc2005_attr_group);
|
||||
err_clear_drvdata:
|
||||
spi_set_drvdata(spi, NULL);
|
||||
free_irq(spi->irq, ts);
|
||||
err_free_mem:
|
||||
input_free_device(input_dev);
|
||||
@ -696,7 +695,6 @@ static int tsc2005_remove(struct spi_device *spi)
|
||||
input_unregister_device(ts->idev);
|
||||
kfree(ts);
|
||||
|
||||
spi_set_drvdata(spi, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user