mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
drivers/input/ft5x06.c: Back out part of last PR. I think that is correct to detach the interrupt handler when the drivers is unlinked.
This commit is contained in:
@@ -780,6 +780,13 @@ static void ft5x06_shutdown(FAR struct ft5x06_dev_s *priv)
|
|||||||
|
|
||||||
config->clear(config);
|
config->clear(config);
|
||||||
config->enable(config, false);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user