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)
commit0ecbf7fc366a5c4e6cfef49572739f1e2544faf5
tree832f570b658a8e34b488779fff8b18744600d62a
parented856eb58f9b40fec07ea83fb6ea571460378d7e
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