File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -378,14 +378,16 @@ static int tegra_shared_plane_atomic_check(struct drm_plane *plane,
378
378
static void tegra_shared_plane_atomic_disable (struct drm_plane * plane ,
379
379
struct drm_plane_state * old_state )
380
380
{
381
- struct tegra_dc * dc = to_tegra_dc (old_state -> crtc );
382
381
struct tegra_plane * p = to_tegra_plane (plane );
382
+ struct tegra_dc * dc ;
383
383
u32 value ;
384
384
385
385
/* rien ne va plus */
386
386
if (!old_state || !old_state -> crtc )
387
387
return ;
388
388
389
+ dc = to_tegra_dc (old_state -> crtc );
390
+
389
391
/*
390
392
* XXX Legacy helpers seem to sometimes call ->atomic_disable() even
391
393
* on planes that are already disabled. Make sure we fallback to the
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ static int vic_boot(struct vic *vic)
106
106
if (vic -> booted )
107
107
return 0 ;
108
108
109
+ #ifdef CONFIG_IOMMU_API
109
110
if (vic -> config -> supports_sid ) {
110
111
struct iommu_fwspec * spec = dev_iommu_fwspec_get (vic -> dev );
111
112
u32 value ;
@@ -121,6 +122,7 @@ static int vic_boot(struct vic *vic)
121
122
vic_writel (vic , value , VIC_THI_STREAMID1 );
122
123
}
123
124
}
125
+ #endif
124
126
125
127
/* setup clockgating registers */
126
128
vic_writel (vic , CG_IDLE_CG_DLY_CNT (4 ) |
You can’t perform that action at this time.
0 commit comments