diff options
Diffstat (limited to 'drivers/input/touchscreen/atmel_tsadcc.c')
-rw-r--r-- | drivers/input/touchscreen/atmel_tsadcc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/atmel_tsadcc.c b/drivers/input/touchscreen/atmel_tsadcc.c index bddabc595077..a7c9d6967d1e 100644 --- a/drivers/input/touchscreen/atmel_tsadcc.c +++ b/drivers/input/touchscreen/atmel_tsadcc.c | |||
@@ -12,7 +12,6 @@ | |||
12 | * it under the terms of the GNU General Public License version 2 as | 12 | * it under the terms of the GNU General Public License version 2 as |
13 | * published by the Free Software Foundation. | 13 | * published by the Free Software Foundation. |
14 | */ | 14 | */ |
15 | #include <linux/init.h> | ||
16 | #include <linux/err.h> | 15 | #include <linux/err.h> |
17 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
18 | #include <linux/module.h> | 17 | #include <linux/module.h> |
@@ -182,7 +181,7 @@ static int atmel_tsadcc_probe(struct platform_device *pdev) | |||
182 | struct atmel_tsadcc *ts_dev; | 181 | struct atmel_tsadcc *ts_dev; |
183 | struct input_dev *input_dev; | 182 | struct input_dev *input_dev; |
184 | struct resource *res; | 183 | struct resource *res; |
185 | struct at91_tsadcc_data *pdata = pdev->dev.platform_data; | 184 | struct at91_tsadcc_data *pdata = dev_get_platdata(&pdev->dev); |
186 | int err; | 185 | int err; |
187 | unsigned int prsc; | 186 | unsigned int prsc; |
188 | unsigned int reg; | 187 | unsigned int reg; |