Client device for handling memory/dma operations for right and left memory
port (memory bank) require runtime pm handling for correct operation. Add
required calls to power_on/power_off functions.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
int s5p_mfc_power_on(void)
{
#ifdef CONFIG_PM_RUNTIME
+ pm_runtime_get_sync(p_dev->mem_dev_l);
+ pm_runtime_get_sync(p_dev->mem_dev_r);
return pm_runtime_get_sync(pm->device);
#else
atomic_set(&pm->power, 1);
int s5p_mfc_power_off(void)
{
#ifdef CONFIG_PM_RUNTIME
+ pm_runtime_put_sync(p_dev->mem_dev_l);
+ pm_runtime_put_sync(p_dev->mem_dev_r);
return pm_runtime_put_sync(pm->device);
#else
atomic_set(&pm->power, 0);