Extcon bugfix pull request for Greg KH on 2012.11.21
This is based on Linux 3.7 rc6
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 <firstname.lastname@example.org>
Signed-off-by: Chanwoo Choi <email@example.com>
Signed-off-by: Myungjoo Ham <firstname.lastname@example.org>
1 file changed