|
@@ -389,7 +389,7 @@ static void usbhsc_hotplug(struct usbhs_priv *priv)
|
|
|
|
|
|
if (enable && !mod) {
|
|
if (enable && !mod) {
|
|
if (priv->edev) {
|
|
if (priv->edev) {
|
|
- cable = extcon_get_cable_state_(priv->edev, EXTCON_USB_HOST);
|
|
|
|
|
|
+ cable = extcon_get_state(priv->edev, EXTCON_USB_HOST);
|
|
if ((cable > 0 && id != USBHS_HOST) ||
|
|
if ((cable > 0 && id != USBHS_HOST) ||
|
|
(!cable && id != USBHS_GADGET)) {
|
|
(!cable && id != USBHS_GADGET)) {
|
|
dev_info(&pdev->dev,
|
|
dev_info(&pdev->dev,
|