Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / southbridge / via / vt8231 / vt8231_usb.c
index 3dd0b4272bcbfe80ff0b6fecc0819ae8b91358c6..e12a8db85ab9b2c272834b3d205d26e326188122 100644 (file)
@@ -9,7 +9,7 @@ static void usb_on(int enable)
        device_t dev2 = dev_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_2, 0);
        /* USB controller 2 */
        device_t dev3 = dev_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_2, dev2);
-       
+
        /* enable USB1 */
        if(dev2) {
                if (enable) {
@@ -20,16 +20,16 @@ static void usb_on(int enable)
                        pci_write_config8(dev2, 0x04, 0x00);
                }
        }
-       
+
        if(dev0) {
                regval = pci_read_config8(dev0, 0x50);
-               if (enable) 
-                       regval &= ~(0x10);    
+               if (enable)
+                       regval &= ~(0x10);
                else
-                       regval |= 0x10;               
+                       regval |= 0x10;
                pci_write_config8(dev0, 0x50, regval);
        }
-       
+
        /* enable USB2 */
        if(dev3) {
                if (enable) {
@@ -40,13 +40,13 @@ static void usb_on(int enable)
                        pci_write_config8(dev3, 0x04, 0x00);
                }
        }
-       
+
        if(dev0) {
                regval = pci_read_config8(dev0, 0x50);
-               if (enable) 
-                       regval &= ~(0x20);    
+               if (enable)
+                       regval &= ~(0x20);
                else
-                       regval |= 0x20;    
+                       regval |= 0x20;
                pci_write_config8(dev0, 0x50, regval);
        }
 }