Input: olpc_apsp - assign priv->dev earlier
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 17 Jan 2019 07:09:31 +0000 (23:09 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 17 Jan 2019 07:19:40 +0000 (23:19 -0800)
commitec87da107d11521123beaa9f8e4869c6f54e8df8
tree65852d4baf194e6ff4c2c26e4c301bda0e5464b1
parentd77651a227f8920dd7ec179b84e400cce844eeb3
Input: olpc_apsp - assign priv->dev earlier

The dev field needs to be set when serio_register_port() is called,
because the open callback may use it (in the error handling path).

Fixes: commit af518342effd ("Input: olpc_apsp - check FIFO status on open(), not probe()")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/olpc_apsp.c