]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ata: Skip ahci dump call if probe is not ivoked
authorPreetham Chandru R <pchandru@nvidia.com>
Tue, 12 Aug 2014 14:31:09 +0000 (20:01 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Wed, 17 Sep 2014 17:52:36 +0000 (10:52 -0700)
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>
drivers/ata/ahci-tegra.c

index a228feb0bec2153a6176598e6aeea7c431e6eee8..58b56a86605d5b35f55b23e1849dfa3a514a58b1 100644 (file)
@@ -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;