Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@nokia.com>
 #include <linux/list.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
-#include <linux/device.h>
+#include <linux/platform_device.h>
 #include <linux/timer.h>
 #include <linux/err.h>
 #include <asm/arch/hardware.h>
        u16             gpio;
        int             flags;
        int             type;
-       int             key_code;
        int             state;
 
        struct work_struct      work;
                sw->gpio = cfg->gpio;
                sw->flags = cfg->flags;
                sw->type = cfg->type;
-               sw->key_code = cfg->key_code;
                sw->state = gpio_sw_get_state(sw);
                if ((r = new_switch(sw)) < 0) {
                        kfree(sw);