mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 17:41:09 +00:00
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
This commit is contained in:
parent
63027b3418
commit
e6cc8f2b76
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue