NFC: pn533: Fix error return code in pn533_probe()
commit4674d0fecbeeb9731274f03ff35a108630be4585
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 12:07:52 +0000 (7 20:07 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 13 Jun 2013 22:18:58 +0000 (14 00:18 +0200)
tree61219be811292cb451a452bef0e8de64d5fa85bd
parenta69bdc1ecd032fda1bc808fa0e1634bbc9417ad5
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