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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;