From e6cc8f2b7616f9d85e281d903f82d6f99819cd08 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Mon, 26 Apr 2021 18:02:51 +0100 Subject: iio: common: scmi_sensors: Drop duplicate setting of iio_dev.dev.parent This is already set to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Jyoti Bhayana Reviewed-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20210426170251.351957-9-jic23@kernel.org --- drivers/iio/common/scmi_sensors/scmi_iio.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/iio/common') diff --git a/drivers/iio/common/scmi_sensors/scmi_iio.c b/drivers/iio/common/scmi_sensors/scmi_iio.c index 141e8aa6911e..7cf2bf282cef 100644 --- a/drivers/iio/common/scmi_sensors/scmi_iio.c +++ b/drivers/iio/common/scmi_sensors/scmi_iio.c @@ -525,7 +525,6 @@ scmi_alloc_iiodev(struct scmi_device *sdev, return ERR_PTR(-ENOMEM); iiodev->modes = INDIO_DIRECT_MODE; - iiodev->dev.parent = dev; sensor = iio_priv(iiodev); sensor->sensor_ops = ops; sensor->ph = ph; -- cgit v1.2.3