Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / southbridge / amd / amd8111 / amd8111_usb2.c
index 1bec894ac88fadc0291e6db1c7e8a42f4994dbc0..89115c3bbe86b94f4537001440b45279b8394ccc 100644 (file)
@@ -11,7 +11,7 @@
 
 static void lpci_set_subsystem(device_t dev, unsigned vendor, unsigned device)
 {
-       pci_write_config32(dev, 0x70, 
+       pci_write_config32(dev, 0x70,
                ((device & 0xffff) << 16) | (vendor & 0xffff));
 }
 
@@ -23,10 +23,10 @@ static struct pci_operations lops_pci = {
 
 static void amd8111_usb2_enable(device_t dev)
 {
-       // Due to buggy USB2 we force it to disable. 
-       dev->enable = 0;
+       // Due to buggy USB2 we force it to disable.
+       dev->enabled = 0;
        amd8111_enable(dev);
-       printk_debug("USB2 disabled.\n");
+       printk(BIOS_DEBUG, "USB2 disabled.\n");
 }
 
 static struct device_operations usb2_ops  = {
@@ -38,7 +38,7 @@ static struct device_operations usb2_ops  = {
        // .ops_pci          = &lops_pci,
 };
 
-static struct pci_driver usb2_driver __pci_driver = {
+static const struct pci_driver usb2_driver __pci_driver = {
        .ops    = &usb2_ops,
        .vendor = PCI_VENDOR_ID_AMD,
        .device = PCI_DEVICE_ID_AMD_8111_USB2,