]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/input/keyboard/pxa27x_keypad.c
Input: remove use of __devexit_p
[mirror_ubuntu-jammy-kernel.git] / drivers / input / keyboard / pxa27x_keypad.c
index 803ff6fe021ec001393a5a9844dd825cbcb6235d..a6bcd3129f0f7e64816f665840af959e9511f028 100644 (file)
@@ -368,6 +368,9 @@ static void pxa27x_keypad_config(struct pxa27x_keypad *keypad)
        unsigned int mask = 0, direct_key_num = 0;
        unsigned long kpc = 0;
 
+       /* clear pending interrupt bit */
+       keypad_readl(KPC);
+
        /* enable matrix keys with automatic scan */
        if (pdata->matrix_key_rows && pdata->matrix_key_cols) {
                kpc |= KPC_ASACT | KPC_MIE | KPC_ME | KPC_MS_ALL;
@@ -617,7 +620,7 @@ MODULE_ALIAS("platform:pxa27x-keypad");
 
 static struct platform_driver pxa27x_keypad_driver = {
        .probe          = pxa27x_keypad_probe,
-       .remove         = __devexit_p(pxa27x_keypad_remove),
+       .remove         = pxa27x_keypad_remove,
        .driver         = {
                .name   = "pxa27x-keypad",
                .owner  = THIS_MODULE,