OSDN Git Service

extcon: max77693: Use resource managed interrupt line
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 12 Sep 2014 13:16:37 +0000 (15:16 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 22 Sep 2014 06:53:23 +0000 (15:53 +0900)
commitd715523174479455b07a8baffbe63ff13e0695bf
tree10a71f650a420cc52dfb648049fdef5146fe75cc
parent6281100ec84016facda2bbbed5be649ff0f82073
extcon: max77693: Use resource managed interrupt line

Use resource managed interrupt line devm_request_threaded_irq() to
simplify a little cleanup paths:
 - no goto to cleanup label,
 - simpler remove function.

Overall the driver size is decreased by 11 line of code.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max77693.c