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: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
                      __func__, ret);
                return ret;
        }
+       input_add_tables(input, false);
        if (priv->matrix.fn_keycode) {
                ret = input_add_table(input, KEY_FN, -1,
                                      priv->matrix.fn_keycode,
        priv->input = input;
        input->dev = dev;
        input->read_keys = tegra_kbc_check;
-       input_add_tables(input, false);
        strcpy(sdev->name, "tegra-kbc");
        ret = input_stdio_register(sdev);
        if (ret) {