Skip ahci dump call if probe is not ivoked and even if
CONFIG_TEGRA_SATA_IDLE_POWERGATE is not defined
Bug
200010376
Change-Id: I4ec5f6643b3bc0dbbebbd65b6085d9ea2353eac1
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/455571
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
u32 *ptr;
u32 i;
+ if (!g_tegra_hpriv)
+ return 0;
+
#ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE
- if (g_tegra_hpriv)
tegra_ahci_runtime_resume(g_tegra_hpriv->dev);
- else
- return 0;
#endif
base = TEGRA_SATA_CONFIG_BASE;