@@ -81,10 +81,8 @@ static const enum drm_plane_type decon_win_types[WINDOWS_NR] = {
81
81
DRM_PLANE_TYPE_CURSOR ,
82
82
};
83
83
84
- static void decon_wait_for_vblank (struct exynos_drm_crtc * crtc )
84
+ static void decon_wait_for_vblank (struct decon_context * ctx )
85
85
{
86
- struct decon_context * ctx = crtc -> ctx ;
87
-
88
86
if (ctx -> suspended )
89
87
return ;
90
88
@@ -100,9 +98,8 @@ static void decon_wait_for_vblank(struct exynos_drm_crtc *crtc)
100
98
DRM_DEV_DEBUG_KMS (ctx -> dev , "vblank wait timed out.\n" );
101
99
}
102
100
103
- static void decon_clear_channels (struct exynos_drm_crtc * crtc )
101
+ static void decon_clear_channels (struct decon_context * ctx )
104
102
{
105
- struct decon_context * ctx = crtc -> ctx ;
106
103
unsigned int win , ch_enabled = 0 ;
107
104
108
105
/* Check if any channel is enabled. */
@@ -118,15 +115,15 @@ static void decon_clear_channels(struct exynos_drm_crtc *crtc)
118
115
119
116
/* Wait for vsync, as disable channel takes effect at next vsync */
120
117
if (ch_enabled )
121
- decon_wait_for_vblank (ctx -> crtc );
118
+ decon_wait_for_vblank (ctx );
122
119
}
123
120
124
121
static int decon_ctx_initialize (struct decon_context * ctx ,
125
122
struct drm_device * drm_dev )
126
123
{
127
124
ctx -> drm_dev = drm_dev ;
128
125
129
- decon_clear_channels (ctx -> crtc );
126
+ decon_clear_channels (ctx );
130
127
131
128
return exynos_drm_register_dma (drm_dev , ctx -> dev , & ctx -> dma_priv );
132
129
}
0 commit comments