@@ -110,7 +110,7 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode)
110
110
#define MCP16502_REGULATOR (_name , _id , _ranges , _ops , _ramp_table ) \
111
111
[_id] = { \
112
112
.name = _name, \
113
- .regulators_node = of_match_ptr( "regulators"), \
113
+ .regulators_node = "regulators", \
114
114
.id = _id, \
115
115
.ops = &(_ops), \
116
116
.type = REGULATOR_VOLTAGE, \
@@ -119,7 +119,7 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode)
119
119
.linear_ranges = _ranges, \
120
120
.linear_min_sel = VDD_LOW_SEL, \
121
121
.n_linear_ranges = ARRAY_SIZE(_ranges), \
122
- .of_match = of_match_ptr( _name), \
122
+ .of_match = _name, \
123
123
.of_map_mode = mcp16502_of_map_mode, \
124
124
.vsel_reg = (((_id) + 1) << 4), \
125
125
.vsel_mask = MCP16502_VSEL, \
@@ -587,7 +587,7 @@ static struct i2c_driver mcp16502_drv = {
587
587
.driver = {
588
588
.name = "mcp16502-regulator" ,
589
589
.probe_type = PROBE_PREFER_ASYNCHRONOUS ,
590
- .of_match_table = of_match_ptr ( mcp16502_ids ) ,
590
+ .of_match_table = mcp16502_ids ,
591
591
#ifdef CONFIG_PM
592
592
.pm = & mcp16502_pm_ops ,
593
593
#endif
0 commit comments