Skip to content

Commit

Permalink
[PATCH] ARM: 2846/1: proper handling of CKEN for pxafb
Browse files Browse the repository at this point in the history
Patch from Nicolas Pitre

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Nicolas Pitre authored and Russell King committed Aug 10, 2005
1 parent 6626a70 commit 8d37226
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,9 @@ static void pxafb_enable_controller(struct pxafb_info *fbi)
DPRINTK("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2);
DPRINTK("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3);

/* enable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 1);

/* Sequence from 11.7.10 */
LCCR3 = fbi->reg_lccr3;
LCCR2 = fbi->reg_lccr2;
Expand Down Expand Up @@ -750,6 +753,9 @@ static void pxafb_disable_controller(struct pxafb_info *fbi)

schedule_timeout(20 * HZ / 1000);
remove_wait_queue(&fbi->ctrlr_wait, &wait);

/* disable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 0);
}

/*
Expand Down Expand Up @@ -1299,8 +1305,6 @@ int __init pxafb_probe(struct device *dev)
ret = -ENOMEM;
goto failed;
}
/* enable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 1);

ret = request_irq(IRQ_LCD, pxafb_handle_irq, SA_INTERRUPT, "LCD", fbi);
if (ret) {
Expand Down

0 comments on commit 8d37226

Please sign in to comment.