summaryrefslogtreecommitdiff
path: root/ft3658/focaltech_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft3658/focaltech_core.c')
-rw-r--r--ft3658/focaltech_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ft3658/focaltech_core.c b/ft3658/focaltech_core.c
index a88df0e..d5a689d 100644
--- a/ft3658/focaltech_core.c
+++ b/ft3658/focaltech_core.c
@@ -3347,6 +3347,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},
{},
@@ -3360,6 +3365,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,