![](https://secure.gravatar.com/avatar/d930951cb00393ecf9c3db3a56d78fa9.jpg?s=120&d=mm&r=g)
30 Dec
2014
30 Dec
'14
5:22 p.m.
On Tue, Dec 30, 2014 at 01:58:16PM -0200, Fabio Estevam wrote:
- if (!IS_ENABLED(CONFIG_PM))
wm8962_runtime_resume(&i2c->dev);
A much neater idiom for this is to have the probe() just default the device to being runtime PM enabled, then if runtime PM is enabled it'll work out that the device is idle and power it off but if runtime PM is disabled it'll just stay powered.