Skip to content

Commit e6cc8f2

Browse files
Jonathan CameronJonathan Cameron
authored andcommitted
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 <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
1 parent 63027b3 commit e6cc8f2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/iio/common/scmi_sensors/scmi_iio.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ scmi_alloc_iiodev(struct scmi_device *sdev,
525525
return ERR_PTR(-ENOMEM);
526526

527527
iiodev->modes = INDIO_DIRECT_MODE;
528-
iiodev->dev.parent = dev;
529528
sensor = iio_priv(iiodev);
530529
sensor->sensor_ops = ops;
531530
sensor->ph = ph;

0 commit comments

Comments
 (0)