phy: twl4030-usb: remove pointless 'suspended' test in 'suspend' callback.
authorNeilBrown <neil@brown.name>
Thu, 16 Apr 2015 08:03:04 +0000 (18:03 +1000)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Jun 2015 10:38:24 +0000 (16:08 +0530)
commit186ecebeb60d5271c519450d71026901d9741714
treea54a3e4d44af6b6a87fff530674d5e8ccbc21a95
parent56301df6bcaaed31e77b8c500ca1b437f46a3158
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 <neil@brown.name>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-twl4030-usb.c