From: NeilBrown Date: Thu, 16 Apr 2015 08:03:04 +0000 (+1000) Subject: phy: twl4030-usb: remove pointless 'suspended' test in 'suspend' callback. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~90^2~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=186ecebeb60d5271c519450d71026901d9741714;p=pandora-kernel.git phy: twl4030-usb: remove pointless 'suspended' test in 'suspend' callback. When the runtime_suspend callback is running, 'runtime_status' is always RPM_SUSPENDING, so pm_runtime_suspended() will always fail. Similarly while the runtime_resume callback is running 'runtime_status' is RPM_RESUMING, so pm_runtime_active() will always fail. So remove these two pointless tests. Signed-off-by: NeilBrown Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed