extcon: adc-jack: Fix checking return value of request_any_context_irq
authorAxel Lin <axel.lin@ingics.com>
Tue, 2 Oct 2012 00:14:59 +0000 (09:14 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 23 Oct 2012 07:32:13 +0000 (16:32 +0900)
commit03019759b98de92b5507c8c2f6e253a35d59c868
tree3e5bd7a7793ce222536b93e56c94f5c5191b3fbb
parent5cd3c277ebc64e4bc30c5eb6412edd43b5730a4f
extcon: adc-jack: Fix checking return value of request_any_context_irq

On failure, request_any_context_irq() returns a negative value.
On success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED.

Also ensure adc_jack_probe() return 0 on success.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-adc-jack.c
This page took 0.025485 seconds and 5 git commands to generate.