OHCI: remove uses of hcd->state
This patch (as1500) removes all uses of the objectionable hcd->state variable from the ohci-hcd family of drivers. It is replaced by a private ohci->rh_state field, just as in uhci-hcd and ehci-hcd. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
c6249ff752
commit
b7463c71fb
@@ -912,7 +912,7 @@ rescan_all:
|
||||
/* only take off EDs that the HC isn't using, accounting for
|
||||
* frame counter wraps and EDs with partially retired TDs
|
||||
*/
|
||||
if (likely (HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
|
||||
if (likely(ohci->rh_state == OHCI_RH_RUNNING)) {
|
||||
if (tick_before (tick, ed->tick)) {
|
||||
skip_ed:
|
||||
last = &ed->ed_next;
|
||||
@@ -1012,7 +1012,7 @@ rescan_this:
|
||||
|
||||
/* but if there's work queued, reschedule */
|
||||
if (!list_empty (&ed->td_list)) {
|
||||
if (HC_IS_RUNNING(ohci_to_hcd(ohci)->state))
|
||||
if (ohci->rh_state == OHCI_RH_RUNNING)
|
||||
ed_schedule (ohci, ed);
|
||||
}
|
||||
|
||||
@@ -1021,9 +1021,7 @@ rescan_this:
|
||||
}
|
||||
|
||||
/* maybe reenable control and bulk lists */
|
||||
if (HC_IS_RUNNING(ohci_to_hcd(ohci)->state)
|
||||
&& ohci_to_hcd(ohci)->state != HC_STATE_QUIESCING
|
||||
&& !ohci->ed_rm_list) {
|
||||
if (ohci->rh_state == OHCI_RH_RUNNING && !ohci->ed_rm_list) {
|
||||
u32 command = 0, control = 0;
|
||||
|
||||
if (ohci->ed_controltail) {
|
||||
|
Reference in New Issue
Block a user