From 2e878765946c093159e57c26dce0be278233502d Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 19 Nov 2008 17:11:07 +0000 Subject: clean-glamofb-cruft.patch Signed-off-by: Andy Green --- drivers/mfd/glamo/glamo-fb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'drivers/mfd/glamo/glamo-fb.c') diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c index 1ae933e9a3e..a73402d29eb 100644 --- a/drivers/mfd/glamo/glamo-fb.c +++ b/drivers/mfd/glamo/glamo-fb.c @@ -324,14 +324,17 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo, /* figure out if orientation is going to change */ orientation_changing = will_orientation_change(var); - /* adjust the pitch according to new orientation to come */ - if (orientation_changing) { + /* adjust the pitch according to new orientation to come */ + + if (orientation_changing) { pitch = var->yres * var->bits_per_pixel / 8; } else { pitch = var->xres * var->bits_per_pixel / 8; } - /* set the awaiten LCD geometry */ + /* + * set the desired LCD geometry + */ reg_set_bit_mask(glamo, GLAMO_REG_LCD_WIDTH, GLAMO_LCD_WIDTH_MASK, -- cgit v1.2.3