]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn533: Fix error return code in pn533_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 12:07:52 +0000 (20:07 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 13 Jun 2013 22:18:58 +0000 (00:18 +0200)
commit3905ff157146ceda6494fda5c8a766262e9a74e2
tree61219be811292cb451a452bef0e8de64d5fa85bd
parent7ab1d2beb829145f4067a306218b56f8981dd043
NFC: pn533: Fix error return code in pn533_probe()

Fix to return -ENOMEM in the nfc device alloc error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c