]> git.sur5r.net Git - u-boot/commitdiff
sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 16 May 2015 17:52:10 +0000 (19:52 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 May 2015 16:46:44 +0000 (18:46 +0200)
sunxi_usbc_vbus_detect was renamed to sunxi_usb_phy_vbus_detect but
g_dnl_board_usb_cable_connected was still using the old name, breaking the build
when USB gadget is enabled.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
board/sunxi/board.c

index 4c51468cf2b12db3e8a92c1966b9590567cfac6e..5f79cc1bb8249987ddc19bc5a58d8032a5f75b30 100644 (file)
@@ -476,7 +476,7 @@ static struct musb_hdrc_platform_data musb_plat = {
 #ifdef CONFIG_USB_GADGET
 int g_dnl_board_usb_cable_connected(void)
 {
-       return sunxi_usbc_vbus_detect(0);
+       return sunxi_usb_phy_vbus_detect(0);
 }
 #endif