Input: pxa27x_keypad - remove pin configuration from the driver
authorEric Miao <eric.y.miao@gmail.com>
Thu, 31 Jan 2008 05:58:00 +0000 (00:58 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 31 Jan 2008 05:58:00 +0000 (00:58 -0500)
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>
drivers/input/keyboard/pxa27x_keypad.c
include/asm-arm/arch-pxa/pxa27x_keypad.h

index 06c1d5abaa815fd2d45040e4b023617961e9cfc1..43fb63d681224d60bcdbd8fe60fe199ff84bb1c7 100644 (file)
@@ -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.
         */
index f19f74adde0041b8ea295888a0926c02240fb18b..ef17db6d791e9e86a6638efc4e922a73544e8eec 100644 (file)
@@ -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;