gpu: nvgpu: Add null check for g->host1x_dev

gk20a_tegra_dump_debug() is set in a platform where host1x support
is not enabled.

Change-Id: Ic57f9081d75be976a092827b253cb2a195d8f16d
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1284336
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Seema Khowala
2017-01-12 09:52:28 -08:00
committed by mobile promotions
parent a86122e01a
commit 16bf1e9416

View File

@@ -1,7 +1,7 @@
/*
* GK20A Tegra Platform Interface
*
* Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -766,7 +766,9 @@ void gk20a_tegra_debug_dump(struct device *dev)
{
struct gk20a_platform *platform = gk20a_get_platform(dev);
struct gk20a *g = platform->g;
nvhost_debug_dump_device(g->host1x_dev);
if (g->host1x_dev)
nvhost_debug_dump_device(g->host1x_dev);
}
int gk20a_tegra_busy(struct device *dev)