ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
[openwrt-working-2016/.git] / target / linux / ramips / files / arch / mips / ralink / rt305x / mach-fonera20n.c
index c87bdaf3e8300a2dc173fd1b66746315856b5a8a..9de07d36b81593eead1913aadd7f46d6e177d061 100644 (file)
@@ -91,7 +91,7 @@ static struct gpio_button fonera20n_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = FONERA20N_GPIO_BUTTON_RESET,
                .active_low     = 1,