From 85493b9ae8188d3eb0083816086411496165c882 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Mon, 26 Apr 2021 18:02:47 +0100 Subject: [PATCH] iio: adc: mt6360: Drop duplicate setting of iio_dev.dev.parent Already set to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Gene Chen Reviewed-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20210426170251.351957-5-jic23@kernel.org --- drivers/iio/adc/mt6360-adc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c index 6b39a139ce286..07c0e67683910 100644 --- a/drivers/iio/adc/mt6360-adc.c +++ b/drivers/iio/adc/mt6360-adc.c @@ -337,7 +337,6 @@ static int mt6360_adc_probe(struct platform_device *pdev) } indio_dev->name = dev_name(&pdev->dev); - indio_dev->dev.parent = &pdev->dev; indio_dev->info = &mt6360_adc_iio_info; indio_dev->modes = INDIO_DIRECT_MODE; indio_dev->channels = mt6360_adc_channels; -- 2.30.2