input: keyreset: Only print message for default handler
Change-Id: I68e5451fef2e6f08bf1035077ea999e34a619f87
Signed-off-by: Colin Cross <ccross@android.com>
diff --git a/drivers/input/keyreset.c b/drivers/input/keyreset.c
index a5091ac..36208fe 100644
--- a/drivers/input/keyreset.c
+++ b/drivers/input/keyreset.c
@@ -88,10 +88,10 @@
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;
}