commit | 4bf27b7038c23fe789aa9bd553a6391cc33ccfa1 | [log] [tgz] |
---|---|---|
author | Vaishali Thakkar <vthakkar1994@gmail.com> | Mon Sep 14 23:19:35 2015 +0530 |
committer | Chanwoo Choi <cw00.choi@samsung.com> | Tue Sep 29 17:58:42 2015 +0900 |
tree | 32f0b47fc16d375c37b3822eead097ff2fee2ad1 | |
parent | ff612f9170eaa9ca7ade357b270f582b0c44ed70 [diff] |
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>