Commit 63027b34 authored by Jonathan Cameron's avatar Jonathan Cameron

iio: position: hid-sensor-custom-intel-hinge: Drop duplicate parent setting.

iio_dev.dev.parent is already set to the same value in
devm_iio_device_alloc()
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Ye Xiang <xiang.ye@intel.com>
Reviewed-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-8-jic23@kernel.org
parent 932bf471
......@@ -303,7 +303,6 @@ static int hid_hinge_probe(struct platform_device *pdev)
return ret;
}
indio_dev->dev.parent = &pdev->dev;
indio_dev->info = &hinge_info;
indio_dev->name = "hinge";
indio_dev->modes = INDIO_DIRECT_MODE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment