File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
#include <linux/errno.h>
10
10
#include <linux/input.h>
11
11
#include <linux/interrupt.h>
12
+ #include <linux/mod_devicetable.h>
12
13
#include <linux/platform_device.h>
13
14
#include <linux/pm_wakeirq.h>
15
+ #include <linux/property.h>
14
16
#include <linux/workqueue.h>
15
17
#include <linux/regmap.h>
16
- #include <linux/of.h>
17
18
#include <linux/mfd/da9063/core.h>
18
19
#include <linux/mfd/da9063/registers.h>
19
20
#include <linux/mfd/da9062/core.h>
@@ -199,8 +200,8 @@ static int da9063_onkey_probe(struct platform_device *pdev)
199
200
return dev_err_probe (& pdev -> dev , - ENXIO ,
200
201
"Parent regmap unavailable.\n" );
201
202
202
- onkey -> key_power = !of_property_read_bool ( pdev -> dev . of_node ,
203
- "dlg,disable-key-power" );
203
+ onkey -> key_power = !device_property_read_bool ( & pdev -> dev ,
204
+ "dlg,disable-key-power" );
204
205
205
206
onkey -> input = devm_input_allocate_device (& pdev -> dev );
206
207
if (!onkey -> input )
You can’t perform that action at this time.
0 commit comments