diff options
author | Feng Tang <feng.tang@intel.com> | 2013-10-09 06:39:16 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-17 00:08:15 +0400 |
commit | 09238443c61e58f7fac8a3892b14b1bee40b4316 (patch) | |
tree | f2edd0e6b71cd1fee32a795fa04536679ef6594a /drivers/mfd/si476x-i2c.c | |
parent | 12082ba2cb053e547dd3faef7af4842f2abe7c19 (diff) | |
download | linux-09238443c61e58f7fac8a3892b14b1bee40b4316.tar.xz |
serial: mrst_max3110: Check the irq number before enable/disabe irq in PM hooks
We should check the validity of the irq number before calling
disable_irq() and enable_irq() in the suspend/resume function,
as "max->irq == 0" means the irq is not enabled for max3110
device, otherwise it will hurt device whose irq number is really 0.
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/si476x-i2c.c')
0 files changed, 0 insertions, 0 deletions