aboutsummaryrefslogtreecommitdiffstats
path: root/net/etherboot/files/patch-c99
blob: 8f242777f4dcb1e3b705b65fc71339abf56bc996 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- filo/usb/ohci.c.orig    Wed Aug  9 22:33:30 2006
+++ filo/usb/ohci.c Wed Aug  9 22:34:47 2006
@@ -1155,10 +1155,10 @@
 
         int timeout = 30;
         int smm_timeout = 50; /* 0,5 sec */
+        ohci_t *ohci = &_ohci_x[controller];
         
         debug("Resetting OHCI\n");
         ohci_regs = (ohci_regs_t *)hc_base[controller];
-        ohci_t *ohci = &_ohci_x[controller];
 
 #ifndef __hppa__
         /* PA-RISC doesn't have SMM, but PDC might leave IR set */
@@ -1204,8 +1204,8 @@
    u32 mask;
    unsigned int fminterval;
    int delaytime;
-   ohci_regs = (ohci_regs_t *)hc_base[controller];
    ohci_t *ohci = &_ohci_x[controller];
+   ohci_regs = (ohci_regs_t *)hc_base[controller];
    
         debug("Starting OHCI\n");