If CONFIG_PM=y, cc_pm_is_dev_suspended() is just a wrapper around
pm_runtime_suspended().
If CONFIG_PM=n, cc_pm_is_dev_suspended() a dummy that behaves exactly
the same as the dummy for pm_runtime_suspended().
Hence remove cc_pm_is_dev_suspended(), and call pm_runtime_suspended()
directly.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
 
        /* STAT_OP_TYPE_GENERIC STAT_PHASE_0: Interrupt */
        /* if driver suspended return, probably shared interrupt */
-       if (cc_pm_is_dev_suspended(dev))
+       if (pm_runtime_suspended(dev))
                return IRQ_NONE;
 
        /* read the interrupt status */
 
        pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 }
-
-bool cc_pm_is_dev_suspended(struct device *dev)
-{
-       /* check device state using runtime api */
-       return pm_runtime_suspended(dev);
-}
 
 int cc_pm_resume(struct device *dev);
 int cc_pm_get(struct device *dev);
 void cc_pm_put_suspend(struct device *dev);
-bool cc_pm_is_dev_suspended(struct device *dev);
 
 #else
 
 
 static inline void cc_pm_put_suspend(struct device *dev) {}
 
-static inline bool cc_pm_is_dev_suspended(struct device *dev)
-{
-       /* if PM not supported device is never suspend */
-       return false;
-}
-
 #endif
 
 #endif /*__POWER_MGR_H__*/