Commit 1fe55309 authored by Michał Kępień's avatar Michał Kępień Committed by Darren Hart

platform/x86: intel-hid: do not set parents of input devices explicitly

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: default avatarMichał Kępień <kernel@kempniu.pl>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: default avatarAlex Hung <alex.hung@canonical.com>
parent db8f95d0
...@@ -152,7 +152,6 @@ static int intel_hid_input_setup(struct platform_device *device) ...@@ -152,7 +152,6 @@ static int intel_hid_input_setup(struct platform_device *device)
if (ret) if (ret)
return ret; return ret;
priv->input_dev->dev.parent = &device->dev;
priv->input_dev->name = "Intel HID events"; priv->input_dev->name = "Intel HID events";
priv->input_dev->id.bustype = BUS_HOST; priv->input_dev->id.bustype = BUS_HOST;
...@@ -173,7 +172,6 @@ static int intel_button_array_input_setup(struct platform_device *device) ...@@ -173,7 +172,6 @@ static int intel_button_array_input_setup(struct platform_device *device)
if (ret) if (ret)
return ret; return ret;
priv->array->dev.parent = &device->dev;
priv->array->name = "Intel HID 5 button array"; priv->array->name = "Intel HID 5 button array";
priv->array->id.bustype = BUS_HOST; priv->array->id.bustype = BUS_HOST;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment