diff --git a/drivers/input/ft5x06.c b/drivers/input/ft5x06.c index 8afe629ae0..6891352b7d 100644 --- a/drivers/input/ft5x06.c +++ b/drivers/input/ft5x06.c @@ -780,6 +780,13 @@ static void ft5x06_shutdown(FAR struct ft5x06_dev_s *priv) config->clear(config); config->enable(config, false); + + /* Detach the interrupt handler (otherwise, the attach may failed if the + * driver is re-registered, depending upon how the lower-half is + * implemented. + */ + + (void)config->attach(config, NULL, NULL); #endif }