iio: common: scmi_sensors: Drop duplicate setting of iio_dev.dev.parent
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 26 Apr 2021 17:02:51 +0000 (18:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:12 +0000 (13:49 +0100)
This is already set to the same value in devm_iio_device_alloc()

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jyoti Bhayana <jbhayana@google.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-9-jic23@kernel.org
drivers/iio/common/scmi_sensors/scmi_iio.c

index 141e8aa..7cf2bf2 100644 (file)
@@ -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;