Merge remote-tracking branches 'regulator/fix/ab3100' and 'regulator/fix/s2mps11' into regulator-linus
This commit is contained in:
commit
a6a671e1b6
@ -498,7 +498,7 @@ static int ab3100_regulator_register(struct platform_device *pdev,
|
|||||||
struct ab3100_platform_data *plfdata,
|
struct ab3100_platform_data *plfdata,
|
||||||
struct regulator_init_data *init_data,
|
struct regulator_init_data *init_data,
|
||||||
struct device_node *np,
|
struct device_node *np,
|
||||||
int id)
|
unsigned long id)
|
||||||
{
|
{
|
||||||
struct regulator_desc *desc;
|
struct regulator_desc *desc;
|
||||||
struct ab3100_regulator *reg;
|
struct ab3100_regulator *reg;
|
||||||
@ -646,7 +646,7 @@ ab3100_regulator_of_probe(struct platform_device *pdev, struct device_node *np)
|
|||||||
err = ab3100_regulator_register(
|
err = ab3100_regulator_register(
|
||||||
pdev, NULL, ab3100_regulator_matches[i].init_data,
|
pdev, NULL, ab3100_regulator_matches[i].init_data,
|
||||||
ab3100_regulator_matches[i].of_node,
|
ab3100_regulator_matches[i].of_node,
|
||||||
(int) ab3100_regulator_matches[i].driver_data);
|
(unsigned long)ab3100_regulator_matches[i].driver_data);
|
||||||
if (err) {
|
if (err) {
|
||||||
ab3100_regulators_remove(pdev);
|
ab3100_regulators_remove(pdev);
|
||||||
return err;
|
return err;
|
||||||
|
@ -441,6 +441,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
|
|||||||
for (i = 0; i < S2MPS11_REGULATOR_MAX; i++) {
|
for (i = 0; i < S2MPS11_REGULATOR_MAX; i++) {
|
||||||
if (!reg_np) {
|
if (!reg_np) {
|
||||||
config.init_data = pdata->regulators[i].initdata;
|
config.init_data = pdata->regulators[i].initdata;
|
||||||
|
config.of_node = pdata->regulators[i].reg_node;
|
||||||
} else {
|
} else {
|
||||||
config.init_data = rdata[i].init_data;
|
config.init_data = rdata[i].init_data;
|
||||||
config.of_node = rdata[i].of_node;
|
config.of_node = rdata[i].of_node;
|
||||||
|
Loading…
Reference in New Issue
Block a user