From 9210331cfbae36fc1064408a1571f3b1e07a100e Mon Sep 17 00:00:00 2001 From: Preetham Chandru R Date: Tue, 12 Aug 2014 20:01:09 +0530 Subject: ata: Skip ahci dump call if probe is not ivoked 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 Reviewed-on: http://git-master/r/455571 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkata Jagadish Reviewed-by: Venkat Moganty --- drivers/ata/ahci-tegra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c index a228feb0bec2..58b56a86605d 100644 --- a/drivers/ata/ahci-tegra.c +++ b/drivers/ata/ahci-tegra.c @@ -2636,11 +2636,11 @@ static int dbg_ahci_dump_show(struct seq_file *s, void *unused) 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; -- cgit v1.2.3