diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-10-16 07:25:58 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-10-17 03:51:02 +0200 |
commit | ec45b858c867b2489f4ae93958379f5cf2597163 (patch) | |
tree | ea0ef547a1e2facb2e80400a7fce024a3cefbf2f /drivers/input/misc/cpcap-pwrbutton.c | |
parent | Input: max8925_onkey - don't mark comment as kernel-doc (diff) | |
download | linux-ec45b858c867b2489f4ae93958379f5cf2597163.tar.xz linux-ec45b858c867b2489f4ae93958379f5cf2597163.zip |
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 <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/YWpiZqrfC9+GQsM4@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/input/misc/cpcap-pwrbutton.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/cpcap-pwrbutton.c b/drivers/input/misc/cpcap-pwrbutton.c index 372cb44d0635..879790bbf9fe 100644 --- a/drivers/input/misc/cpcap-pwrbutton.c +++ b/drivers/input/misc/cpcap-pwrbutton.c @@ -77,7 +77,6 @@ static int cpcap_power_button_probe(struct platform_device *pdev) button->idev->name = "cpcap-pwrbutton"; button->idev->phys = "cpcap-pwrbutton/input0"; - button->idev->dev.parent = button->dev; input_set_capability(button->idev, EV_KEY, KEY_POWER); err = devm_request_threaded_irq(&pdev->dev, irq, NULL, |