mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
input: keyreset: Only print message for default handler
Change-Id: I68e5451fef2e6f08bf1035077ea999e34a619f87 Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
parent
34dcf173c5
commit
f780a1f78f
|
|
@ -88,10 +88,10 @@ static void keyreset_event(struct input_handle *handle, unsigned int type,
|
|||
state->restart_disabled = 1;
|
||||
if (restart_requested)
|
||||
panic("keyboard reset failed, %d", restart_requested);
|
||||
pr_info("keyboard reset\n");
|
||||
if (state->reset_fn) {
|
||||
restart_requested = state->reset_fn();
|
||||
} else {
|
||||
pr_info("keyboard reset\n");
|
||||
schedule_work(&restart_work);
|
||||
restart_requested = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user