summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/mt6360-adc.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-04-26 18:02:47 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-05-17 13:49:12 +0100
commit85493b9ae8188d3eb0083816086411496165c882 (patch)
tree39179f698134d4a8c5f43811983f16219ae2eeba /drivers/iio/adc/mt6360-adc.c
parent806e657b0f7e79473f242a2435e5c4e027c632a6 (diff)
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 <Jonathan.Cameron@huawei.com> Cc: Gene Chen <gene_chen@richtek.com> Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com> Link: https://lore.kernel.org/r/20210426170251.351957-5-jic23@kernel.org
Diffstat (limited to 'drivers/iio/adc/mt6360-adc.c')
-rw-r--r--drivers/iio/adc/mt6360-adc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c
index 6b39a139ce28..07c0e6768391 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;