diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-03-18 14:55:46 +0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2014-03-19 09:41:58 +0400 |
commit | 1ad94ffef22c0a6e2ee6ba90a800c32fd29ffa1f (patch) | |
tree | 1cacdc1749c8ca3d47e3ef8fc19fa5228db4354e /drivers/usb/dwc3/dwc3-omap.c | |
parent | ca48824117b3ceaa4e35a7c5d651b95c288308e6 (diff) | |
download | linux-1ad94ffef22c0a6e2ee6ba90a800c32fd29ffa1f.tar.xz |
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()
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-omap.c')
-rw-r--r-- | drivers/usb/dwc3/dwc3-omap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index b269dbd47fc4..b1d7ee6e40b7 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -29,7 +29,6 @@ #include <linux/of.h> #include <linux/of_platform.h> #include <linux/extcon.h> -#include <linux/extcon/of_extcon.h> #include <linux/regulator/consumer.h> #include <linux/usb/otg.h> @@ -522,7 +521,7 @@ static int dwc3_omap_probe(struct platform_device *pdev) dwc3_omap_enable_irqs(omap); if (of_property_read_bool(node, "extcon")) { - edev = of_extcon_get_extcon_dev(dev, 0); + edev = extcon_get_edev_by_phandle(dev, 0); if (IS_ERR(edev)) { dev_vdbg(dev, "couldn't get extcon device\n"); ret = -EPROBE_DEFER; |