]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ata: Skip ahci dump call if module probe not ivoked.
authorPrafull Suryawanshi <prafulls@nvidia.com>
Tue, 6 May 2014 13:26:21 +0000 (18:56 +0530)
committerMitch Luban <mluban@nvidia.com>
Thu, 22 May 2014 17:33:42 +0000 (10:33 -0700)
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>
drivers/ata/ahci-tegra.c

index 6aa31f754a6d4e39f282ca7ff6090dc29aaaf0db..c3a22c7a6d2ae610f1195354feeeec3fd35a6591 100644 (file)
@@ -2649,7 +2649,10 @@ static int dbg_ahci_dump_show(struct seq_file *s, void *unused)
        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;