summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/st-keyscan.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-26 15:31:57 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-27 08:58:54 -0400
commite5e9c17efe77dbbc9b041a517705e0b6c1866110 (patch)
treed191db7bfce550a5368d22d392b0de260cd1f73c /drivers/input/keyboard/st-keyscan.c
parentfe8ac4c919832f77fa96e90caef8559088ec8f40 (diff)
parenta2cddfe2ce6e9108341820fff8af46713685b2cb (diff)
Merge tag 'v4.19.31' into v4.19-rt
This is the 4.19.31 stable release Conflicts: mm/swap.c
Diffstat (limited to 'drivers/input/keyboard/st-keyscan.c')
-rw-r--r--drivers/input/keyboard/st-keyscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/keyboard/st-keyscan.c b/drivers/input/keyboard/st-keyscan.c
index babcfb165e4f..3b85631fde91 100644
--- a/drivers/input/keyboard/st-keyscan.c
+++ b/drivers/input/keyboard/st-keyscan.c
@@ -153,6 +153,8 @@ static int keyscan_probe(struct platform_device *pdev)
input_dev->id.bustype = BUS_HOST;
+ keypad_data->input_dev = input_dev;
+
error = keypad_matrix_key_parse_dt(keypad_data);
if (error)
return error;
@@ -168,8 +170,6 @@ static int keyscan_probe(struct platform_device *pdev)
input_set_drvdata(input_dev, keypad_data);
- keypad_data->input_dev = input_dev;
-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
keypad_data->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(keypad_data->base))