usb: phy: ab8500: Remove the set_power callback
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 18 Jan 2017 12:19:47 +0000 (20:19 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:22 +0000 (11:04 +0200)
There are no users will use the vbus_draw variable set by set_power()
callback to set the vbus current. Thus we can remove it.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-ab8500-usb.c

index a03caf4b1327c441f086724f42e317f7d7793172..3dfbb978de67fb8034b13177470103439a6850f3 100644 (file)
@@ -1036,25 +1036,6 @@ static unsigned ab8500_eyediagram_workaroud(struct ab8500_usb *ab, unsigned mA)
        return mA;
 }
 
-static int ab8500_usb_set_power(struct usb_phy *phy, unsigned mA)
-{
-       struct ab8500_usb *ab;
-
-       if (!phy)
-               return -ENODEV;
-
-       ab = phy_to_ab(phy);
-
-       mA = ab8500_eyediagram_workaroud(ab, mA);
-
-       ab->vbus_draw = mA;
-
-       atomic_notifier_call_chain(&ab->phy.notifier,
-                       UX500_MUSB_VBUS, &ab->vbus_draw);
-
-       return 0;
-}
-
 static int ab8500_usb_set_suspend(struct usb_phy *x, int suspend)
 {
        /* TODO */
@@ -1392,7 +1373,6 @@ static int ab8500_usb_probe(struct platform_device *pdev)
        ab->phy.otg             = otg;
        ab->phy.label           = "ab8500";
        ab->phy.set_suspend     = ab8500_usb_set_suspend;
-       ab->phy.set_power       = ab8500_usb_set_power;
        ab->phy.otg->state      = OTG_STATE_UNDEFINED;
 
        otg->usb_phy            = &ab->phy;