Skip to content

Commit

Permalink
regulator: drop owner assignment from platform_drivers
Browse files Browse the repository at this point in the history
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
Wolfram Sang committed Oct 20, 2014
1 parent f05fae1 commit 6c794b2
Show file tree
Hide file tree
Showing 61 changed files with 0 additions and 67 deletions.
1 change: 0 additions & 1 deletion drivers/regulator/88pm800.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ static int pm800_regulator_remove(struct platform_device *pdev)
static struct platform_driver pm800_regulator_driver = {
.driver = {
.name = "88pm80x-regulator",
.owner = THIS_MODULE,
},
.probe = pm800_regulator_probe,
.remove = pm800_regulator_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/88pm8607.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ MODULE_DEVICE_TABLE(platform, pm8607_regulator_driver_ids);
static struct platform_driver pm8607_regulator_driver = {
.driver = {
.name = "88pm860x-regulator",
.owner = THIS_MODULE,
},
.probe = pm8607_regulator_probe,
.id_table = pm8607_regulator_driver_ids,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/aat2870-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ static int aat2870_regulator_probe(struct platform_device *pdev)
static struct platform_driver aat2870_regulator_driver = {
.driver = {
.name = "aat2870-regulator",
.owner = THIS_MODULE,
},
.probe = aat2870_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/ab3100.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,6 @@ static int ab3100_regulators_probe(struct platform_device *pdev)
static struct platform_driver ab3100_regulators_driver = {
.driver = {
.name = "ab3100-regulators",
.owner = THIS_MODULE,
},
.probe = ab3100_regulators_probe,
.remove = ab3100_regulators_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/ab8500-ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ static struct platform_driver ab8500_ext_regulator_driver = {
.probe = ab8500_ext_regulator_probe,
.driver = {
.name = "ab8500-ext-regulator",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/ab8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,6 @@ static struct platform_driver ab8500_regulator_driver = {
.probe = ab8500_regulator_probe,
.driver = {
.name = "ab8500-regulator",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/anatop-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ static const struct of_device_id of_anatop_regulator_match_tbl[] = {
static struct platform_driver anatop_regulator_driver = {
.driver = {
.name = "anatop_regulator",
.owner = THIS_MODULE,
.of_match_table = of_anatop_regulator_match_tbl,
},
.probe = anatop_regulator_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/arizona-ldo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ static struct platform_driver arizona_ldo1_driver = {
.probe = arizona_ldo1_probe,
.driver = {
.name = "arizona-ldo1",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/arizona-micsupp.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ static struct platform_driver arizona_micsupp_driver = {
.probe = arizona_micsupp_probe,
.driver = {
.name = "arizona-micsupp",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/as3711-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ static int as3711_regulator_probe(struct platform_device *pdev)
static struct platform_driver as3711_regulator_driver = {
.driver = {
.name = "as3711-regulator",
.owner = THIS_MODULE,
},
.probe = as3711_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/as3722-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,6 @@ MODULE_DEVICE_TABLE(of, of_as3722_regulator_match);
static struct platform_driver as3722_regulator_driver = {
.driver = {
.name = "as3722-regulator",
.owner = THIS_MODULE,
.of_match_table = of_as3722_regulator_match,
},
.probe = as3722_regulator_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/axp20x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ static struct platform_driver axp20x_regulator_driver = {
.probe = axp20x_regulator_probe,
.driver = {
.name = "axp20x-regulator",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/bcm590xx-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ static int bcm590xx_probe(struct platform_device *pdev)
static struct platform_driver bcm590xx_regulator_driver = {
.driver = {
.name = "bcm590xx-vregs",
.owner = THIS_MODULE,
},
.probe = bcm590xx_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ static int da903x_regulator_probe(struct platform_device *pdev)
static struct platform_driver da903x_regulator_driver = {
.driver = {
.name = "da903x-regulator",
.owner = THIS_MODULE,
},
.probe = da903x_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/da9052-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ static struct platform_driver da9052_regulator_driver = {
.probe = da9052_regulator_probe,
.driver = {
.name = "da9052-regulator",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/da9055-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ static struct platform_driver da9055_regulator_driver = {
.probe = da9055_regulator_probe,
.driver = {
.name = "da9055-regulator",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/da9063-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,6 @@ static int da9063_regulator_remove(struct platform_device *pdev)
static struct platform_driver da9063_regulator_driver = {
.driver = {
.name = DA9063_DRVNAME_REGULATORS,
.owner = THIS_MODULE,
},
.probe = da9063_regulator_probe,
.remove = da9063_regulator_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ static int db8500_regulator_remove(struct platform_device *pdev)
static struct platform_driver db8500_regulator_driver = {
.driver = {
.name = "db8500-prcmu-regulators",
.owner = THIS_MODULE,
},
.probe = db8500_regulator_probe,
.remove = db8500_regulator_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ static struct platform_driver dummy_regulator_driver = {
.probe = dummy_regulator_probe,
.driver = {
.name = "reg-dummy",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ static struct platform_driver regulator_fixed_voltage_driver = {
.probe = reg_fixed_voltage_probe,
.driver = {
.name = "reg-fixed-voltage",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(fixed_of_match),
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/gpio-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ static struct platform_driver gpio_regulator_driver = {
.remove = gpio_regulator_remove,
.driver = {
.name = "gpio-regulator",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(regulator_gpio_of_match),
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/hi6421-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ static int hi6421_regulator_probe(struct platform_device *pdev)
static struct platform_driver hi6421_regulator_driver = {
.driver = {
.name = "hi6421-regulator",
.owner = THIS_MODULE,
},
.probe = hi6421_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/lp8788-buck.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ static struct platform_driver lp8788_buck_driver = {
.probe = lp8788_buck_probe,
.driver = {
.name = LP8788_DEV_BUCK,
.owner = THIS_MODULE,
},
};

Expand Down
2 changes: 0 additions & 2 deletions drivers/regulator/lp8788-ldo.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ static struct platform_driver lp8788_dldo_driver = {
.probe = lp8788_dldo_probe,
.driver = {
.name = LP8788_DEV_DLDO,
.owner = THIS_MODULE,
},
};

Expand Down Expand Up @@ -611,7 +610,6 @@ static struct platform_driver lp8788_aldo_driver = {
.probe = lp8788_aldo_probe,
.driver = {
.name = LP8788_DEV_ALDO,
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max14577.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ MODULE_DEVICE_TABLE(platform, max14577_regulator_id);

static struct platform_driver max14577_regulator_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "max14577-regulator",
},
.probe = max14577_regulator_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ MODULE_DEVICE_TABLE(platform, max77686_pmic_id);
static struct platform_driver max77686_pmic_driver = {
.driver = {
.name = "max77686-pmic",
.owner = THIS_MODULE,
},
.probe = max77686_pmic_probe,
.id_table = max77686_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(platform, max77693_pmic_id);
static struct platform_driver max77693_pmic_driver = {
.driver = {
.name = "max77693-pmic",
.owner = THIS_MODULE,
},
.probe = max77693_pmic_probe,
.id_table = max77693_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max77802.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ MODULE_DEVICE_TABLE(platform, max77802_pmic_id);
static struct platform_driver max77802_pmic_driver = {
.driver = {
.name = "max77802-pmic",
.owner = THIS_MODULE,
},
.probe = max77802_pmic_probe,
.id_table = max77802_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max8907-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ static int max8907_regulator_probe(struct platform_device *pdev)
static struct platform_driver max8907_regulator_driver = {
.driver = {
.name = "max8907-regulator",
.owner = THIS_MODULE,
},
.probe = max8907_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max8925-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ static int max8925_regulator_probe(struct platform_device *pdev)
static struct platform_driver max8925_regulator_driver = {
.driver = {
.name = "max8925-regulator",
.owner = THIS_MODULE,
},
.probe = max8925_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,6 @@ MODULE_DEVICE_TABLE(platform, max8997_pmic_id);
static struct platform_driver max8997_pmic_driver = {
.driver = {
.name = "max8997-pmic",
.owner = THIS_MODULE,
},
.probe = max8997_pmic_probe,
.id_table = max8997_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/max8998.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,6 @@ MODULE_DEVICE_TABLE(platform, max8998_pmic_id);
static struct platform_driver max8998_pmic_driver = {
.driver = {
.name = "max8998-pmic",
.owner = THIS_MODULE,
},
.probe = max8998_pmic_probe,
.id_table = max8998_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/mc13783-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ static int mc13783_regulator_probe(struct platform_device *pdev)
static struct platform_driver mc13783_regulator_driver = {
.driver = {
.name = "mc13783-regulator",
.owner = THIS_MODULE,
},
.probe = mc13783_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/mc13892-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ static int mc13892_regulator_probe(struct platform_device *pdev)
static struct platform_driver mc13892_regulator_driver = {
.driver = {
.name = "mc13892-regulator",
.owner = THIS_MODULE,
},
.probe = mc13892_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/palmas-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,6 @@ static struct platform_driver palmas_driver = {
.driver = {
.name = "palmas-pmic",
.of_match_table = of_palmas_match_tbl,
.owner = THIS_MODULE,
},
.probe = palmas_regulators_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/pbias-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ static struct platform_driver pbias_regulator_driver = {
.probe = pbias_regulator_probe,
.driver = {
.name = "pbias-regulator",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pbias_of_match),
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/pcap-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ static int pcap_regulator_probe(struct platform_device *pdev)
static struct platform_driver pcap_regulator_driver = {
.driver = {
.name = "pcap-regulator",
.owner = THIS_MODULE,
},
.probe = pcap_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/pwm-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ MODULE_DEVICE_TABLE(of, pwm_of_match);
static struct platform_driver pwm_regulator_driver = {
.driver = {
.name = "pwm-regulator",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pwm_of_match),
},
.probe = pwm_regulator_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/qcom_rpm-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,6 @@ static struct platform_driver rpm_reg_driver = {
.probe = rpm_reg_probe,
.driver = {
.name = "qcom_rpm_reg",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(rpm_of_match),
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/rc5t583-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ static int rc5t583_regulator_probe(struct platform_device *pdev)
static struct platform_driver rc5t583_regulator_driver = {
.driver = {
.name = "rc5t583-regulator",
.owner = THIS_MODULE,
},
.probe = rc5t583_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/rk808-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ static struct platform_driver rk808_regulator_driver = {
.probe = rk808_regulator_probe,
.driver = {
.name = "rk808-regulator",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/s2mpa01.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ MODULE_DEVICE_TABLE(platform, s2mpa01_pmic_id);
static struct platform_driver s2mpa01_pmic_driver = {
.driver = {
.name = "s2mpa01-pmic",
.owner = THIS_MODULE,
},
.probe = s2mpa01_pmic_probe,
.id_table = s2mpa01_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/s2mps11.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ MODULE_DEVICE_TABLE(platform, s2mps11_pmic_id);
static struct platform_driver s2mps11_pmic_driver = {
.driver = {
.name = "s2mps11-pmic",
.owner = THIS_MODULE,
},
.probe = s2mps11_pmic_probe,
.id_table = s2mps11_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/s5m8767.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,6 @@ MODULE_DEVICE_TABLE(platform, s5m8767_pmic_id);
static struct platform_driver s5m8767_pmic_driver = {
.driver = {
.name = "s5m8767-pmic",
.owner = THIS_MODULE,
},
.probe = s5m8767_pmic_probe,
.id_table = s5m8767_pmic_id,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/stw481x-vmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ static const struct of_device_id stw481x_vmmc_match[] = {
static struct platform_driver stw481x_vmmc_regulator_driver = {
.driver = {
.name = "stw481x-vmmc-regulator",
.owner = THIS_MODULE,
.of_match_table = stw481x_vmmc_match,
},
.probe = stw481x_vmmc_regulator_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/ti-abb-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,6 @@ static struct platform_driver ti_abb_driver = {
.probe = ti_abb_probe,
.driver = {
.name = "ti_abb",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ti_abb_of_match),
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/tps6105x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ static int tps6105x_regulator_probe(struct platform_device *pdev)
static struct platform_driver tps6105x_regulator_driver = {
.driver = {
.name = "tps6105x-regulator",
.owner = THIS_MODULE,
},
.probe = tps6105x_regulator_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/tps6507x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ static int tps6507x_pmic_probe(struct platform_device *pdev)
static struct platform_driver tps6507x_pmic_driver = {
.driver = {
.name = "tps6507x-pmic",
.owner = THIS_MODULE,
},
.probe = tps6507x_pmic_probe,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/regulator/tps65090-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ static int tps65090_regulator_probe(struct platform_device *pdev)
static struct platform_driver tps65090_regulator_driver = {
.driver = {
.name = "tps65090-pmic",
.owner = THIS_MODULE,
},
.probe = tps65090_regulator_probe,
};
Expand Down
Loading

0 comments on commit 6c794b2

Please sign in to comment.