File tree Expand file tree Collapse file tree 3 files changed +2
-30
lines changed Expand file tree Collapse file tree 3 files changed +2
-30
lines changed Original file line number Diff line number Diff line change 10
10
#include <linux/irq.h>
11
11
#include <linux/regulator/driver.h>
12
12
#include <linux/regulator/machine.h>
13
- #include <linux/of_device .h>
13
+ #include <linux/of .h>
14
14
#include <linux/regulator/of_regulator.h>
15
15
#include <linux/regmap.h>
16
16
@@ -135,16 +135,6 @@ static int da9210_i2c_probe(struct i2c_client *i2c)
135
135
struct regulator_dev * rdev = NULL ;
136
136
struct regulator_config config = { };
137
137
int error ;
138
- const struct of_device_id * match ;
139
-
140
- if (i2c -> dev .of_node && !pdata ) {
141
- match = of_match_device (of_match_ptr (da9210_dt_ids ),
142
- & i2c -> dev );
143
- if (!match ) {
144
- dev_err (& i2c -> dev , "Error: No device match found\n" );
145
- return - ENODEV ;
146
- }
147
- }
148
138
149
139
chip = devm_kzalloc (& i2c -> dev , sizeof (struct da9210 ), GFP_KERNEL );
150
140
if (!chip )
Original file line number Diff line number Diff line change 11
11
#include <linux/regulator/driver.h>
12
12
#include <linux/slab.h>
13
13
#include <linux/regulator/max1586.h>
14
- #include <linux/of_device .h>
14
+ #include <linux/of .h>
15
15
#include <linux/regulator/of_regulator.h>
16
16
17
17
#define MAX1586_V3_MAX_VSEL 31
@@ -213,16 +213,9 @@ static int max1586_pmic_probe(struct i2c_client *client)
213
213
struct regulator_config config = { };
214
214
struct max1586_data * max1586 ;
215
215
int i , id , ret ;
216
- const struct of_device_id * match ;
217
216
218
217
pdata = dev_get_platdata (& client -> dev );
219
218
if (client -> dev .of_node && !pdata ) {
220
- match = of_match_device (of_match_ptr (max1586_of_match ),
221
- & client -> dev );
222
- if (!match ) {
223
- dev_err (& client -> dev , "Error: No device match found\n" );
224
- return - ENODEV ;
225
- }
226
219
ret = of_get_max1586_platform_data (& client -> dev , & pdata_of );
227
220
if (ret < 0 )
228
221
return ret ;
Original file line number Diff line number Diff line change 16
16
#include <linux/kernel.h>
17
17
#include <linux/module.h>
18
18
#include <linux/of.h>
19
- #include <linux/of_device.h>
20
19
#include <linux/platform_device.h>
21
20
#include <linux/regmap.h>
22
21
#include <linux/regulator/driver.h>
@@ -255,16 +254,6 @@ static int tps51632_probe(struct i2c_client *client)
255
254
int ret ;
256
255
struct regulator_config config = { };
257
256
258
- if (client -> dev .of_node ) {
259
- const struct of_device_id * match ;
260
- match = of_match_device (of_match_ptr (tps51632_of_match ),
261
- & client -> dev );
262
- if (!match ) {
263
- dev_err (& client -> dev , "Error: No device match found\n" );
264
- return - ENODEV ;
265
- }
266
- }
267
-
268
257
tps = devm_kzalloc (& client -> dev , sizeof (* tps ), GFP_KERNEL );
269
258
if (!tps )
270
259
return - ENOMEM ;
You can’t perform that action at this time.
0 commit comments