File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ static void decon_ctx_remove(struct decon_context *ctx)
139
139
static u32 decon_calc_clkdiv (struct decon_context * ctx ,
140
140
const struct drm_display_mode * mode )
141
141
{
142
- unsigned long ideal_clk = mode -> htotal * mode -> vtotal * mode -> vrefresh ;
142
+ unsigned long ideal_clk = mode -> clock ;
143
143
u32 clkdiv ;
144
144
145
145
/* Find the clock divider value that gets us closest to ideal_clk */
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ static int exynos_drm_bind(struct device *dev)
270
270
struct drm_encoder * encoder ;
271
271
struct drm_device * drm ;
272
272
unsigned int clone_mask ;
273
- int cnt , ret ;
273
+ int ret ;
274
274
275
275
drm = drm_dev_alloc (& exynos_drm_driver , dev );
276
276
if (IS_ERR (drm ))
@@ -293,10 +293,9 @@ static int exynos_drm_bind(struct device *dev)
293
293
exynos_drm_mode_config_init (drm );
294
294
295
295
/* setup possible_clones. */
296
- cnt = 0 ;
297
296
clone_mask = 0 ;
298
297
list_for_each_entry (encoder , & drm -> mode_config .encoder_list , head )
299
- clone_mask |= ( 1 << ( cnt ++ ) );
298
+ clone_mask |= drm_encoder_mask ( encoder );
300
299
301
300
list_for_each_entry (encoder , & drm -> mode_config .encoder_list , head )
302
301
encoder -> possible_clones = clone_mask ;
You can’t perform that action at this time.
0 commit comments