diff options
Diffstat (limited to 'ft3658')
-rw-r--r-- | ft3658/focaltech_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ft3658/focaltech_core.c b/ft3658/focaltech_core.c index 38e0dcd..920effa 100644 --- a/ft3658/focaltech_core.c +++ b/ft3658/focaltech_core.c @@ -3317,6 +3317,11 @@ static int fts_ts_remove(struct spi_device *spi) return fts_ts_remove_entry(spi_get_drvdata(spi)); } +static void fts_ts_shutdown(struct spi_device *spi) +{ + fts_ts_remove(spi); +} + static const struct spi_device_id fts_ts_id[] = { {FTS_DRIVER_NAME, 0}, {}, @@ -3330,6 +3335,7 @@ MODULE_DEVICE_TABLE(of, fts_dt_match); static struct spi_driver fts_ts_driver = { .probe = fts_ts_probe, .remove = fts_ts_remove, + .shutdown = fts_ts_shutdown, .driver = { .name = FTS_DRIVER_NAME, .owner = THIS_MODULE, |