Skip to content

Commit b23b52b

Browse files
committed
Merge tag 'drm/tegra/for-5.1-rc2' of git://anongit.freedesktop.org/tegra/linux into drm-fixes
drm/tegra: Fixes for v5.1-rc2 These are a couple of minor fixes for build issues and sparse warnings. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thierry Reding <thierry.reding@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190322131517.825-1-thierry.reding@gmail.com
2 parents b6a36e5 + 509869a commit b23b52b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/gpu/drm/tegra/hub.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,16 @@ static int tegra_shared_plane_atomic_check(struct drm_plane *plane,
378378
static void tegra_shared_plane_atomic_disable(struct drm_plane *plane,
379379
struct drm_plane_state *old_state)
380380
{
381-
struct tegra_dc *dc = to_tegra_dc(old_state->crtc);
382381
struct tegra_plane *p = to_tegra_plane(plane);
382+
struct tegra_dc *dc;
383383
u32 value;
384384

385385
/* rien ne va plus */
386386
if (!old_state || !old_state->crtc)
387387
return;
388388

389+
dc = to_tegra_dc(old_state->crtc);
390+
389391
/*
390392
* XXX Legacy helpers seem to sometimes call ->atomic_disable() even
391393
* on planes that are already disabled. Make sure we fallback to the

drivers/gpu/drm/tegra/vic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static int vic_boot(struct vic *vic)
106106
if (vic->booted)
107107
return 0;
108108

109+
#ifdef CONFIG_IOMMU_API
109110
if (vic->config->supports_sid) {
110111
struct iommu_fwspec *spec = dev_iommu_fwspec_get(vic->dev);
111112
u32 value;
@@ -121,6 +122,7 @@ static int vic_boot(struct vic *vic)
121122
vic_writel(vic, value, VIC_THI_STREAMID1);
122123
}
123124
}
125+
#endif
124126

125127
/* setup clockgating registers */
126128
vic_writel(vic, CG_IDLE_CG_DLY_CNT(4) |

0 commit comments

Comments
 (0)