diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/misc/ab8500-ponkey.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 350fd0c385d2..84ec691c05aa 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/input.h> | 13 | #include <linux/input.h> |
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/mfd/abx500/ab8500.h> | 15 | #include <linux/mfd/abx500/ab8500.h> |
16 | #include <linux/of.h> | ||
16 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
17 | 18 | ||
18 | /** | 19 | /** |
@@ -131,10 +132,18 @@ static int __devexit ab8500_ponkey_remove(struct platform_device *pdev) | |||
131 | return 0; | 132 | return 0; |
132 | } | 133 | } |
133 | 134 | ||
135 | #ifdef CONFIG_OF | ||
136 | static const struct of_device_id ab8500_ponkey_match[] = { | ||
137 | { .compatible = "stericsson,ab8500-ponkey", }, | ||
138 | {} | ||
139 | }; | ||
140 | #endif | ||
141 | |||
134 | static struct platform_driver ab8500_ponkey_driver = { | 142 | static struct platform_driver ab8500_ponkey_driver = { |
135 | .driver = { | 143 | .driver = { |
136 | .name = "ab8500-poweron-key", | 144 | .name = "ab8500-poweron-key", |
137 | .owner = THIS_MODULE, | 145 | .owner = THIS_MODULE, |
146 | .of_match_table = of_match_ptr(ab8500_ponkey_match), | ||
138 | }, | 147 | }, |
139 | .probe = ab8500_ponkey_probe, | 148 | .probe = ab8500_ponkey_probe, |
140 | .remove = __devexit_p(ab8500_ponkey_remove), | 149 | .remove = __devexit_p(ab8500_ponkey_remove), |