Skip to content

Commit

Permalink
Input: pxa27x_keypad - remove pin configuration from the driver
Browse files Browse the repository at this point in the history
The pin configurations will slowly be moved to the board specific code
at initialization thus to make the driver more generic.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Eric Miao authored and Dmitry Torokhov committed Jan 31, 2008
1 parent 0e5f11a commit 1a1cd73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions drivers/input/keyboard/pxa27x_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ static int __devinit pxa27x_keypad_probe(struct platform_device *pdev)
if (error)
goto err_free_irq;

/* Setup GPIOs. */
for (i = 0; i < pdata->nr_rows + pdata->nr_cols; i++)
pxa_gpio_mode(pdata->gpio_modes[i]);

/*
* Store rows/cols info into keyboard registers.
*/
Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-pxa/pxa27x_keypad.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
struct pxa27x_keypad_platform_data {
int nr_rows, nr_cols;
int keycodes[PXAKBD_MAXROW][PXAKBD_MAXCOL];
int gpio_modes[PXAKBD_MAXROW + PXAKBD_MAXCOL];

#ifdef CONFIG_PM
u32 reg_kpc;
Expand Down

0 comments on commit 1a1cd73

Please sign in to comment.