Skip to content

Commit

Permalink
[ARM] pxa: fix pxa27x keyboard driver
Browse files Browse the repository at this point in the history
CKEN macro definitions no longer contains the bit number; remove it
from usages in the pxa27x keyboard driver.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jun 5, 2007
1 parent db002b8 commit c0f85a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/keyboard/pxa27x_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ static int pxakbd_open(struct input_dev *dev)
KPREC = 0x7F;

/* Enable unit clock */
pxa_set_cken(CKEN19_KEYPAD, 1);
pxa_set_cken(CKEN_KEYPAD, 1);

return 0;
}

static void pxakbd_close(struct input_dev *dev)
{
/* Disable clock unit */
pxa_set_cken(CKEN19_KEYPAD, 0);
pxa_set_cken(CKEN_KEYPAD, 0);
}

#ifdef CONFIG_PM
Expand Down Expand Up @@ -185,7 +185,7 @@ static int __devinit pxakbd_probe(struct platform_device *pdev)
DRIVER_NAME, pdev);
if (error) {
printk(KERN_ERR "Cannot request keypad IRQ\n");
pxa_set_cken(CKEN19_KEYPAD, 0);
pxa_set_cken(CKEN_KEYPAD, 0);
goto err_free_dev;
}

Expand Down

0 comments on commit c0f85a8

Please sign in to comment.