Bug
1508535
Change-Id: I208ce8765d86d8f35b1f9c6fc9519c159de5522a
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
(cherry picked from commit
1ce382c5f334408da85ba314e46a999a3aa420a7)
Reviewed-on: http://git-master/r/405845
Reviewed-on: http://git-master/r/410889
Reviewed-by: Mitch Luban <mluban@nvidia.com>
u32 i;
#ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE
- tegra_ahci_runtime_resume(g_tegra_hpriv->dev);
+ if (g_tegra_hpriv)
+ tegra_ahci_runtime_resume(g_tegra_hpriv->dev);
+ else
+ return 0;
#endif
base = TEGRA_SATA_CONFIG_BASE;