]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: i2c: shorten lifetime of IRQ handler
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:44:55 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:48 +0000 (13:41 +0200)
commit681ae6e31268720b4a45c98833f7cb0cad60c4ff
tree832f570b658a8e34b488779fff8b18744600d62a
parent03551d312e1b72dd7696fdb08fa4d59de3cca4b7
staging: most: i2c: shorten lifetime of IRQ handler

Currently the IRQ handler used for the rx channel lives between the
functions i2c_probe and i2c_remove. This patch shortens the lifetime
and keeps the handler alive only between the functions configure_channel
and poison_channel.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/i2c/i2c.c