summaryrefslogtreecommitdiff
path: root/drivers/misc/sii9234.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sii9234.c')
-rw-r--r--drivers/misc/sii9234.c3
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);