diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-03-18 20:31:33 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:47:31 +0900 |
commit | dfb7bd65eb856383836bc243d941bdb9734f149b (patch) | |
tree | 36b0d7f85c46ac526b803436a015b2f770e1db54 /drivers/misc | |
parent | 96a17925ba8b9c5726c6421f496055ef75dc8f6c (diff) | |
download | linux-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/misc')
-rw-r--r-- | drivers/misc/sii9234.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/sii9234.c b/drivers/misc/sii9234.c index 8d051c4ff63..dfc70823456 100644 --- a/drivers/misc/sii9234.c +++ b/drivers/misc/sii9234.c @@ -43,7 +43,6 @@ #include <linux/extcon.h> #include <linux/of.h> #include <linux/of_gpio.h> -#include <linux/extcon/of_extcon.h> #include <linux/regulator/machine.h> /* MHL Tx registers and bits */ @@ -872,7 +871,7 @@ static int sii9234_extcon_init(struct sii9234 *sii9234) int ret; if (of_property_read_bool(dev->of_node, "extcon")) { - edev = of_extcon_get_extcon_dev(dev, 0); + edev = extcon_get_edev_by_phandle(dev, 0); if (IS_ERR(edev)) { dev_err(dev, "failed to acquire extcon device\n"); return PTR_ERR(edev); |