static void rmmod_host_driver(struct usb_msg_center_info *center_info) { DMSG_INFO("\n\nrmmod_host_driver\n\n"); #if defined (CONFIG_ARCH_SUN8IW8) || defined (CONFIG_ARCH_SUN8IW7) #if defined(CONFIG_USB_SUNXI_EHCI0) sunxi_usb_disable_ehci(0); #endif #if defined(CONFIG_USB_SUNXI_OHCI0) sunxi_usb_disable_ohci(0); #endif #else { int ret = 0; ret = sunxi_usb_host0_disable(); if (ret != 0) { DMSG_PANIC("err: disable hcd0 failed\n"); return; } } #endif set_usb_role(center_info, USB_ROLE_NULL); return; }
static void rmmod_host_driver(struct usb_msg_center_info *center_info) { int ret = 0; DMSG_INFO("\n\nrmmod_host_driver\n\n"); ret = sunxi_usb_host0_disable(); if (ret != 0) { DMSG_PANIC("err: disable hcd0 failed\n"); return; } set_usb_role(center_info, USB_ROLE_NULL); return; }