Skip to content

Commit ec45b85

Browse files
committed
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: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent a88638c commit ec45b85

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/input/misc/cpcap-pwrbutton.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ static int cpcap_power_button_probe(struct platform_device *pdev)
7777

7878
button->idev->name = "cpcap-pwrbutton";
7979
button->idev->phys = "cpcap-pwrbutton/input0";
80-
button->idev->dev.parent = button->dev;
8180
input_set_capability(button->idev, EV_KEY, KEY_POWER);
8281

8382
err = devm_request_threaded_irq(&pdev->dev, irq, NULL,

0 commit comments

Comments
 (0)