diff options
author | Preetham Chandru R <pchandru@nvidia.com> | 2014-08-12 20:01:09 +0530 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2014-09-17 10:52:36 -0700 |
commit | 9210331cfbae36fc1064408a1571f3b1e07a100e (patch) | |
tree | a31bbfb32ba38c9f69d8c94f76620ef37fb23aa5 | |
parent | a6918e5042a049327367b2c70bd6f43cac2ee573 (diff) |
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 <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>
-rw-r--r-- | drivers/ata/ahci-tegra.c | 6 |
1 files 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; |