From: Sachin Kamat Date: Tue, 20 Nov 2012 06:46:44 +0000 (+0900) Subject: extcon: max77693: Fix incorrect error check and return value X-Git-Tag: v3.8-rc1~95^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00af4b16e098f7899d78c7009f0b525c9c512f94;p=pandora-kernel.git extcon: max77693: Fix incorrect error check and return value irq_create_mapping() returns 0 if it fails to provide a valid irq number. 'ret' needs to be updated with a negative error code before returning from probe to signal probe failure. While at it, also corrected the 'virq' type to unsigned from signed. Signed-off-by: Sachin Kamat Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- Reading git-diff-tree failed