Input: mxs-lradc - do a NULL check on iores
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 14 Aug 2017 17:26:27 +0000 (10:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Aug 2017 03:23:46 +0000 (20:23 -0700)
commite48060ce2c7f73e424272bd6f5d9f996f1853064
treedd37c9f0411f8dad577605cb1fb54c25a30c0bf4
parent94aef061c796d3d47f1a2eed41e651ffaaade402
Input: mxs-lradc - do a NULL check on iores

platform_get_resource() may fail, so we should better do a NULL check
and return error on failure.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/mxs-lradc-ts.c