From: Jonathan Cameron Date: Mon, 26 Apr 2021 17:02:50 +0000 (+0100) Subject: iio: position: hid-sensor-custom-intel-hinge: Drop duplicate parent setting. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63027b34189a6f4a788c536be6495e93d75fb4c3;p=linux.git 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: Jonathan Cameron Cc: Ye Xiang Reviewed-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20210426170251.351957-8-jic23@kernel.org --- diff --git a/drivers/iio/position/hid-sensor-custom-intel-hinge.c b/drivers/iio/position/hid-sensor-custom-intel-hinge.c index fd77e7ee87f35..738b5f4626ceb 100644 --- a/drivers/iio/position/hid-sensor-custom-intel-hinge.c +++ b/drivers/iio/position/hid-sensor-custom-intel-hinge.c @@ -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;