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:
@@ -287,7 +287,7 @@ static const struct attribute_group regulator_virtual_attr_group = {
|
||||
|
||||
static int regulator_virtual_probe(struct platform_device *pdev)
|
||||
{
|
||||
char *reg_id = pdev->dev.platform_data;
|
||||
char *reg_id = dev_get_platdata(&pdev->dev);
|
||||
struct virtual_consumer_data *drvdata;
|
||||
int ret;
|
||||
|
||||
|
Reference in New Issue
Block a user