Commit ec45b858 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: cpcap-pwrbutton - do not set input parent explicitly

We are using devm_input_allocate_device() that already sets parent
of the input device, there is no need to do that again.
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/YWpiZqrfC9+GQsM4@google.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a88638c4
...@@ -77,7 +77,6 @@ static int cpcap_power_button_probe(struct platform_device *pdev) ...@@ -77,7 +77,6 @@ static int cpcap_power_button_probe(struct platform_device *pdev)
button->idev->name = "cpcap-pwrbutton"; button->idev->name = "cpcap-pwrbutton";
button->idev->phys = "cpcap-pwrbutton/input0"; button->idev->phys = "cpcap-pwrbutton/input0";
button->idev->dev.parent = button->dev;
input_set_capability(button->idev, EV_KEY, KEY_POWER); input_set_capability(button->idev, EV_KEY, KEY_POWER);
err = devm_request_threaded_irq(&pdev->dev, irq, NULL, err = devm_request_threaded_irq(&pdev->dev, irq, NULL,
......
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