diff options
Diffstat (limited to 'drivers/iio/adc/exynos_adc.c')
-rw-r--r-- | drivers/iio/adc/exynos_adc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index d25b262193a7..affa93f51789 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c | |||
@@ -344,7 +344,7 @@ static int exynos_adc_probe(struct platform_device *pdev) | |||
344 | 344 | ||
345 | exynos_adc_hw_init(info); | 345 | exynos_adc_hw_init(info); |
346 | 346 | ||
347 | ret = of_platform_populate(np, exynos_adc_match, NULL, &pdev->dev); | 347 | ret = of_platform_populate(np, exynos_adc_match, NULL, &indio_dev->dev); |
348 | if (ret < 0) { | 348 | if (ret < 0) { |
349 | dev_err(&pdev->dev, "failed adding child nodes\n"); | 349 | dev_err(&pdev->dev, "failed adding child nodes\n"); |
350 | goto err_of_populate; | 350 | goto err_of_populate; |
@@ -353,7 +353,7 @@ static int exynos_adc_probe(struct platform_device *pdev) | |||
353 | return 0; | 353 | return 0; |
354 | 354 | ||
355 | err_of_populate: | 355 | err_of_populate: |
356 | device_for_each_child(&pdev->dev, NULL, | 356 | device_for_each_child(&indio_dev->dev, NULL, |
357 | exynos_adc_remove_devices); | 357 | exynos_adc_remove_devices); |
358 | regulator_disable(info->vdd); | 358 | regulator_disable(info->vdd); |
359 | clk_disable_unprepare(info->clk); | 359 | clk_disable_unprepare(info->clk); |
@@ -369,7 +369,7 @@ static int exynos_adc_remove(struct platform_device *pdev) | |||
369 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 369 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
370 | struct exynos_adc *info = iio_priv(indio_dev); | 370 | struct exynos_adc *info = iio_priv(indio_dev); |
371 | 371 | ||
372 | device_for_each_child(&pdev->dev, NULL, | 372 | device_for_each_child(&indio_dev->dev, NULL, |
373 | exynos_adc_remove_devices); | 373 | exynos_adc_remove_devices); |
374 | regulator_disable(info->vdd); | 374 | regulator_disable(info->vdd); |
375 | clk_disable_unprepare(info->clk); | 375 | clk_disable_unprepare(info->clk); |