usb: chipidea: parameter 'mode' isn't needed for hw_device_reset
[deliverable/linux.git] / drivers / usb / chipidea / otg_fsm.c
index 3c2ab1ae00fca6a5c6ae2d5b27ea2b2b8e679606..7ef124db657aa9ec2f956efc40532ed7b57d1266 100644 (file)
@@ -543,7 +543,7 @@ static int ci_otg_start_host(struct otg_fsm *fsm, int on)
                ci_role_start(ci, CI_ROLE_HOST);
        } else {
                ci_role_stop(ci);
-               hw_device_reset(ci, USBMODE_CM_DC);
+               hw_device_reset(ci);
                ci_role_start(ci, CI_ROLE_GADGET);
        }
        mutex_lock(&fsm->lock);
@@ -795,11 +795,8 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci)
 
        ci->fsm_timer = devm_kzalloc(ci->dev,
                        sizeof(struct ci_otg_fsm_timer_list), GFP_KERNEL);
-       if (!ci->fsm_timer) {
-               dev_err(ci->dev,
-               "Failed to allocate timer structure for ci hdrc otg!\n");
+       if (!ci->fsm_timer)
                return -ENOMEM;
-       }
 
        INIT_LIST_HEAD(&ci->fsm_timer->active_timers);
        retval = ci_otg_init_timers(ci);
This page took 0.029713 seconds and 5 git commands to generate.