Input: imx6ul_tsc - clean up some errors in imx6ul_tsc_resume()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Sep 2020 17:17:01 +0000 (10:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 16 Sep 2020 17:38:56 +0000 (10:38 -0700)
commit30df23c5ecdfb8da5b0bc17ceef67eff9e1b0957
treec6c88799984e818861c142b8c0879983e43acca0
parent93f634069707cfe562c38739f5062feccbe9a834
Input: imx6ul_tsc - clean up some errors in imx6ul_tsc_resume()

If imx6ul_tsc_init() fails then we need to clean up the clocks.

I reversed the "if (input_dev->users) {" condition to make the code a
bit simpler.

Fixes: 6cc527b05847 ("Input: imx6ul_tsc - propagate the errors")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200905124942.GC183976@mwanda
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/imx6ul_tsc.c