]> asedeno.scripts.mit.edu Git - linux.git/commit
extcon: axp288: Convert to using managed resources
authorVaishali Thakkar <vthakkar1994@gmail.com>
Mon, 14 Sep 2015 17:49:35 +0000 (23:19 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Sep 2015 08:58:42 +0000 (17:58 +0900)
commit4bf27b7038c23fe789aa9bd553a6391cc33ccfa1
tree32f0b47fc16d375c37b3822eead097ff2fee2ad1
parentff612f9170eaa9ca7ade357b270f582b0c44ed70
extcon: axp288: Convert to using managed resources

Use resource managed functions devm_usb_get_phy and
devm_gpio_request to make error path simpler. To be
compatible the change, various gotos are replaced
with direct returns and unnecessary label
gpio_req_failed is dropped.

Also, remove function axp288_extcon_remove as it is
now redundant.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-axp288.c