]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_tsadcc - fix error handing with missing platform data
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 28 May 2013 07:58:19 +0000 (00:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 6 Jun 2013 05:48:52 +0000 (22:48 -0700)
commitf06aa5e6373fe0835134d97299052ec236c0c2a0
tree773cf912d59b5520b22a52cdcc3c79d567370ff5
parent893ea705ce805e79324f40d9dce798cdc7368a0a
Input: atmel_tsadcc - fix error handing with missing platform data

If pdata is NULL, atmel_tsadcc_probe() will release all the resources
and return 0, but we need a error code is returned in this case.
Fix to return -EINVAL and move the check for pdata to the begin
of this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_tsadcc.c