From: Feng Tang Date: Wed, 9 Oct 2013 02:39:16 +0000 (+0800) Subject: serial: mrst_max3110: Check the irq number before enable/disabe irq in PM hooks X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~63^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09238443c61e58f7fac8a3892b14b1bee40b4316;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed