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/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>
#include <linux/timer.h>
#include <linux/err.h>
#include <asm/arch/hardware.h>
u16 gpio;
int flags;
int type;
u16 gpio;
int flags;
int type;
int state;
struct work_struct work;
int state;
struct work_struct work;
sw->gpio = cfg->gpio;
sw->flags = cfg->flags;
sw->type = cfg->type;
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);
sw->state = gpio_sw_get_state(sw);
if ((r = new_switch(sw)) < 0) {
kfree(sw);