ASoC: tegra-alt: xbar child suspend fix

platform_pm_suspend should not be called directly
as this is not exported symbol. Changes calls the
xbar child suspend function using ops exposed by
child drivers.

Bug 200176091

Change-Id: Idb275fe76a96e6fa8d6aec10bccb28f39e3bb0f2
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1160288
(cherry picked from commit 508a06f86d52af5d8c6b6d9df97db6e4857773ba)
Reviewed-on: http://git-master/r/1238409
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
This commit is contained in:
Dipesh Gandhi
2016-10-18 16:21:32 +05:30
committed by Sameer Pujar
parent 90edd0856e
commit 6a29672f96

View File

@@ -105,7 +105,17 @@ static int tegra210_xbar_runtime_resume(struct device *dev)
#ifdef CONFIG_PM_SLEEP
static int tegra210_xbar_child_suspend(struct device *dev, void *data)
{
return platform_pm_suspend(dev);
struct device_driver *drv = dev->driver;
int ret = 0;
if (!drv)
return 0;
if (drv->pm)
if (drv->pm->suspend)
ret = drv->pm->suspend(dev);
return ret;
}
static int tegra210_xbar_suspend(struct device *dev)