mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
regulator: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
@@ -243,7 +243,7 @@ static int pcap_regulator_probe(struct platform_device *pdev)
|
||||
struct regulator_config config = { };
|
||||
|
||||
config.dev = &pdev->dev;
|
||||
config.init_data = pdev->dev.platform_data;
|
||||
config.init_data = dev_get_platdata(&pdev->dev);
|
||||
config.driver_data = pcap;
|
||||
|
||||
rdev = regulator_register(&pcap_regulators[pdev->id], &config);
|
||||
|
||||
Reference in New Issue
Block a user