Skip to content

Commit

Permalink
drivers/input/ft5x06.c: Back out part of last PR. I think that is cor…
Browse files Browse the repository at this point in the history
…rect to detach the interrupt handler when the drivers is unlinked.
  • Loading branch information
gregory-nutt committed Aug 1, 2018
1 parent 18ca531 commit b79e6b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/input/ft5x06.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b79e6b9

Please sign in to comment.