devm_input_allocate_device() already causes the supplied struct device
to be set as the parent of the input device, so doing it again is
redundant.
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Alex Hung <alex.hung@canonical.com>
        if (ret)
                return ret;
 
-       priv->input_dev->dev.parent = &device->dev;
        priv->input_dev->name = "Intel HID events";
        priv->input_dev->id.bustype = BUS_HOST;
 
        if (ret)
                return ret;
 
-       priv->array->dev.parent = &device->dev;
        priv->array->name = "Intel HID 5 button array";
        priv->array->id.bustype = BUS_HOST;