aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/gpio_keys_polled.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/gpio_keys_polled.c')
-rw-r--r--drivers/input/keyboard/gpio_keys_polled.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c
index 922cbbdb5c84..8c09ce244aa2 100644
--- a/drivers/input/keyboard/gpio_keys_polled.c
+++ b/drivers/input/keyboard/gpio_keys_polled.c
@@ -103,8 +103,7 @@ static void gpio_keys_polled_close(struct input_polled_dev *dev)
103} 103}
104 104
105#ifdef CONFIG_OF 105#ifdef CONFIG_OF
106static struct gpio_keys_platform_data * __devinit 106static struct gpio_keys_platform_data *gpio_keys_polled_get_devtree_pdata(struct device *dev)
107gpio_keys_polled_get_devtree_pdata(struct device *dev)
108{ 107{
109 struct device_node *node, *pp; 108 struct device_node *node, *pp;
110 struct gpio_keys_platform_data *pdata; 109 struct gpio_keys_platform_data *pdata;
@@ -196,7 +195,7 @@ gpio_keys_polled_get_devtree_pdata(struct device *dev)
196} 195}
197#endif 196#endif
198 197
199static int __devinit gpio_keys_polled_probe(struct platform_device *pdev) 198static int gpio_keys_polled_probe(struct platform_device *pdev)
200{ 199{
201 struct device *dev = &pdev->dev; 200 struct device *dev = &pdev->dev;
202 const struct gpio_keys_platform_data *pdata = dev_get_platdata(dev); 201 const struct gpio_keys_platform_data *pdata = dev_get_platdata(dev);