Skip to content
Snippets Groups Projects
Commit 73248479 authored by Simon Glass's avatar Simon Glass Committed by Tom Warren
Browse files

tegra: keyboard: Fix the init order


We need to add the base tables before adding the function tables. Fix the
init order so the keyboard scans keys correctly.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 727a25b2
No related branches found
No related tags found
No related merge requests found
...@@ -312,6 +312,7 @@ static int tegra_kbd_probe(struct udevice *dev) ...@@ -312,6 +312,7 @@ static int tegra_kbd_probe(struct udevice *dev)
__func__, ret); __func__, ret);
return ret; return ret;
} }
input_add_tables(input, false);
if (priv->matrix.fn_keycode) { if (priv->matrix.fn_keycode) {
ret = input_add_table(input, KEY_FN, -1, ret = input_add_table(input, KEY_FN, -1,
priv->matrix.fn_keycode, priv->matrix.fn_keycode,
...@@ -326,7 +327,6 @@ static int tegra_kbd_probe(struct udevice *dev) ...@@ -326,7 +327,6 @@ static int tegra_kbd_probe(struct udevice *dev)
priv->input = input; priv->input = input;
input->dev = dev; input->dev = dev;
input->read_keys = tegra_kbc_check; input->read_keys = tegra_kbc_check;
input_add_tables(input, false);
strcpy(sdev->name, "tegra-kbc"); strcpy(sdev->name, "tegra-kbc");
ret = input_stdio_register(sdev); ret = input_stdio_register(sdev);
if (ret) { if (ret) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment