mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user