22 Apr
2014
22 Apr
'14
2:47 p.m.
On Tue, Apr 22, 2014 at 02:03:14PM +0300, Peter Ujfalusi wrote:
Move the pm_runtime_enable/disable to dai driver probe/remove callbacks from module probe/remove callbacks. With this change we can remove the platform driver's remove function since it became NULL.
This does mean that if the device gets enumerated but isn't used in the system it won't go to runtime idle since the DAI level probe is only called when we're building a card. That doesn't seem like it's a win. How about creating a devm_pm_runtime_enable() instead?