diff mbox series

[5/8] iio: adc: ti-ads131e08: Drop duplicate setting of iio_dev.dev.parent

Message ID 20210426170251.351957-6-jic23@kernel.org (mailing list archive)
State New, archived
Headers show
Series iio: cleanup some new instances of manual parent setting. | expand

Commit Message

Jonathan Cameron April 26, 2021, 5:02 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Already set to same value in devm_iio_device_alloc()

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Tomislav Denis <tomislav.denis@avl.com>
---
 drivers/iio/adc/ti-ads131e08.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/iio/adc/ti-ads131e08.c b/drivers/iio/adc/ti-ads131e08.c
index 5dcf1e9294d7..d220eef5c0df 100644
--- a/drivers/iio/adc/ti-ads131e08.c
+++ b/drivers/iio/adc/ti-ads131e08.c
@@ -824,7 +824,6 @@  static int ads131e08_probe(struct spi_device *spi)
 		return ret;
 
 	indio_dev->name = st->info->name;
-	indio_dev->dev.parent = &spi->dev;
 	indio_dev->info = &ads131e08_iio_info;
 	indio_dev->modes = INDIO_DIRECT_MODE;