iio: position: hid-sensor-custom-intel-hinge: Drop duplicate parent setting.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 26 Apr 2021 17:02:50 +0000 (18:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:12 +0000 (13:49 +0100)
iio_dev.dev.parent is already set to the same value in
devm_iio_device_alloc()

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Ye Xiang <xiang.ye@intel.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-8-jic23@kernel.org
drivers/iio/position/hid-sensor-custom-intel-hinge.c

index fd77e7e..738b5f4 100644 (file)
@@ -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;