]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
usb: otg: tegra: Remove OTG notifier for charger
authorRohith Seelaboyina <rseelaboyina@nvidia.com>
Thu, 12 Sep 2013 12:08:44 +0000 (17:38 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 27 Sep 2013 02:46:27 +0000 (19:46 -0700)
Remove OTG notifier for charger as it will be
handled in charger code.

Bug 1354941

Change-Id: I30269d7c4e4482f22b2d2c29ebbaeae73fd8e6c7
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/273753
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/phy/tegra-otg.c

index c6b940508cbe4e8a45e2b3313cf415f1a5ea42d5..0930ea0b184c2ee7789c4839c3348f97b6543458 100644 (file)
@@ -333,13 +333,10 @@ static int tegra_otg_start_gadget(struct tegra_otg *tegra, int on)
 {
        struct usb_otg *otg = tegra->phy.otg;
 
-       if (on) {
+       if (on)
                usb_gadget_vbus_connect(otg->gadget);
-               tegra_otg_notify_event(tegra, USB_EVENT_VBUS);
-       } else {
+       else
                usb_gadget_vbus_disconnect(otg->gadget);
-               tegra_otg_notify_event(tegra, USB_EVENT_NONE);
-       }
 
        return 0;
 }