summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2014-03-18 20:31:33 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:31 +0900
commitdfb7bd65eb856383836bc243d941bdb9734f149b (patch)
tree36b0d7f85c46ac526b803436a015b2f770e1db54 /drivers/usb
parent96a17925ba8b9c5726c6421f496055ef75dc8f6c (diff)
downloadlinux-3.10-dfb7bd65eb856383836bc243d941bdb9734f149b.tar.gz
linux-3.10-dfb7bd65eb856383836bc243d941bdb9734f149b.tar.bz2
linux-3.10-dfb7bd65eb856383836bc243d941bdb9734f149b.zip
extcon: Move OF helper function to extcon core and change function name
This patch move simply OF helper function to extcon core and change function name as following: - of_extcon_get_extcon_dev() -> extcon_get_edev_by_phandle() Change-Id: I37fd827f945e3d713cfe15607689eab6792007b1 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/udc-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c
index 0c639bb3cfe..1db6f187674 100644
--- a/drivers/usb/gadget/udc-core.c
+++ b/drivers/usb/gadget/udc-core.c
@@ -29,7 +29,6 @@
#include <linux/of.h>
#include <linux/extcon.h>
-#include <linux/extcon/of_extcon.h>
#include <linux/workqueue.h>
/**
@@ -379,7 +378,7 @@ static int udc_bind_to_driver(struct usb_udc *udc, struct usb_gadget_driver *dri
node = udc->gadget->dev.of_node;
/* Check if we have an extcon associated with the UDC driver */
if (node && of_property_read_bool(node, "extcon")) {
- edev = of_extcon_get_extcon_dev(&udc->gadget->dev, 0);
+ edev = extcon_get_edev_by_phandle(&udc->gadget->dev, 0);
if(IS_ERR(edev)) {
dev_dbg(&udc->dev, "couldn't get extcon device\n");