From: Wei Yongjun Date: Tue, 28 May 2013 07:58:19 +0000 (-0700) Subject: Input: atmel_tsadcc - fix error handing with missing platform data X-Git-Tag: v3.11-rc1~86^2~7^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b8dd299a1344626bbcfcbd62f19f1542349ad8;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed