]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: system76_acpi: Fix input device error handling
authorTim Crawford <tcrawford@system76.com>
Sat, 30 Oct 2021 15:42:13 +0000 (09:42 -0600)
committerHans de Goede <hdegoede@redhat.com>
Tue, 2 Nov 2021 10:23:55 +0000 (11:23 +0100)
commit6808e60202941050e3042b533bdde47ed4a88e29
tree8f32a8be2d18ff3a6303c094d904c2dcbb5209cc
parentcbb18f0e7ed95e4e367032ab1d7de8b3cb4429f3
platform/x86: system76_acpi: Fix input device error handling

Users on darp6 that do not have Open EC firmware have reported crashes
on boot. Correct the error handling for the input device to fix it.

Managed devices do not need to be explicitly unregistered or freed, as
this is handled by devres. Drop the call to input_free_device.

Fixes: af45cc2f29bd ("platform/x86: system76_acpi: Replace Fn+F2 function for OLED models")
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Link: https://lore.kernel.org/r/20211030154213.2515-1-tcrawford@system76.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/system76_acpi.c