.. | .. |
---|
99 | 99 | return rdev->desc->volt_table[val]; |
---|
100 | 100 | } |
---|
101 | 101 | |
---|
102 | | -struct regulator_ops mc13xxx_regulator_ops = { |
---|
| 102 | +const struct regulator_ops mc13xxx_regulator_ops = { |
---|
103 | 103 | .enable = mc13xxx_regulator_enable, |
---|
104 | 104 | .disable = mc13xxx_regulator_disable, |
---|
105 | 105 | .is_enabled = mc13xxx_regulator_is_enabled, |
---|
.. | .. |
---|
127 | 127 | } |
---|
128 | 128 | EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage); |
---|
129 | 129 | |
---|
130 | | -struct regulator_ops mc13xxx_fixed_regulator_ops = { |
---|
| 130 | +const struct regulator_ops mc13xxx_fixed_regulator_ops = { |
---|
131 | 131 | .enable = mc13xxx_regulator_enable, |
---|
132 | 132 | .disable = mc13xxx_regulator_disable, |
---|
133 | 133 | .is_enabled = mc13xxx_regulator_is_enabled, |
---|
.. | .. |
---|
186 | 186 | for (i = 0; i < num_regulators; i++) { |
---|
187 | 187 | if (!regulators[i].desc.name) |
---|
188 | 188 | continue; |
---|
189 | | - if (!of_node_cmp(child->name, |
---|
| 189 | + if (of_node_name_eq(child, |
---|
190 | 190 | regulators[i].desc.name)) { |
---|
191 | 191 | p->id = i; |
---|
192 | 192 | p->init_data = of_get_regulator_init_data( |
---|
.. | .. |
---|
203 | 203 | |
---|
204 | 204 | if (!found) |
---|
205 | 205 | dev_warn(&pdev->dev, |
---|
206 | | - "Unknown regulator: %s\n", child->name); |
---|
| 206 | + "Unknown regulator: %pOFn\n", child); |
---|
207 | 207 | } |
---|
208 | 208 | of_node_put(parent); |
---|
209 | 209 | |
---|