lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 17 Feb 2017 22:01:59 +0200 From: Krzysztof Kozlowski <krzk@...nel.org> To: Lee Jones <lee.jones@...aro.org>, Chanwoo Choi <cw00.choi@...sung.com>, Krzysztof Kozlowski <krzk@...nel.org>, Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>, Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org Subject: [RFT 3/4] regulator: max14577: Remove support for platform data max14577 family of drivers are used only on Exynos-based ARMv7 boards which all were converted to DeviceTree long time ago. Remove the support for platform data to simplify the driver. Signed-off-by: Krzysztof Kozlowski <krzk@...nel.org> --- drivers/regulator/max14577-regulator.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/regulator/max14577-regulator.c b/drivers/regulator/max14577-regulator.c index 0db288ce319c..fa9b4b3a2878 100644 --- a/drivers/regulator/max14577-regulator.c +++ b/drivers/regulator/max14577-regulator.c @@ -245,7 +245,6 @@ static struct regmap *max14577_get_regmap(struct max14577 *max14577, static int max14577_regulator_probe(struct platform_device *pdev) { struct max14577 *max14577 = dev_get_drvdata(pdev->dev.parent); - struct max14577_platform_data *pdata = dev_get_platdata(max14577->dev); int i, ret = 0; struct regulator_config config = {}; const struct regulator_desc *supported_regulators; @@ -268,17 +267,9 @@ static int max14577_regulator_probe(struct platform_device *pdev) for (i = 0; i < supported_regulators_size; i++) { struct regulator_dev *regulator; - /* - * Index of supported_regulators[] is also the id and must - * match index of pdata->regulators[]. - */ - if (pdata && pdata->regulators) { - config.init_data = pdata->regulators[i].initdata; - config.of_node = pdata->regulators[i].of_node; - } else { - config.init_data = match_init_data(i, dev_type); - config.of_node = match_of_node(i, dev_type); - } + + config.init_data = match_init_data(i, dev_type); + config.of_node = match_of_node(i, dev_type); config.regmap = max14577_get_regmap(max14577, supported_regulators[i].id); -- 2.9.3
Powered by blists - more mailing lists