input: keyreset: Only print message for default handler

Change-Id: I68e5451fef2e6f08bf1035077ea999e34a619f87
Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
Colin Cross 2011-01-21 13:42:46 -08:00
parent 34dcf173c5
commit f780a1f78f

View File

@ -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;
}