diff options
author | Prafull Suryawanshi <prafulls@nvidia.com> | 2014-05-06 18:56:21 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-20 13:37:08 -0700 |
commit | 0c0f57acc2721fab390b2b71e9c450dd1352a0e1 (patch) | |
tree | a865fd6cb6253d97427a6d9046c862815dd5b1b8 /drivers/ata/ahci-tegra.c | |
parent | 5b2f2dfd169a7f99dd8b33a4a984e473d871add9 (diff) |
ata: Skip ahci dump call if module probe not ivoked.
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/411325
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'drivers/ata/ahci-tegra.c')
-rw-r--r-- | drivers/ata/ahci-tegra.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c index b714de207680..a228feb0bec2 100644 --- a/drivers/ata/ahci-tegra.c +++ b/drivers/ata/ahci-tegra.c @@ -2637,7 +2637,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; |