From 63027b34189a6f4a788c536be6495e93d75fb4c3 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Mon, 26 Apr 2021 18:02:50 +0100 Subject: 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 --- drivers/iio/position/hid-sensor-custom-intel-hinge.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/iio/position/hid-sensor-custom-intel-hinge.c') diff --git a/drivers/iio/position/hid-sensor-custom-intel-hinge.c b/drivers/iio/position/hid-sensor-custom-intel-hinge.c index fd77e7ee87f3..738b5f4626ce 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; -- cgit v1.2.3