Felix Singer has uploaded this change for review.

View Change

soc/intel/denverton/uart.c: Clean up code

Since there is only one device ID used for UART,
an array is not needed. Therefore, just save the
device ID to the device variable.

Change-Id: Icd325e1102a85cc175f6025519a47a1b64ee5b46
Signed-off-by: Felix Singer <felix.singer@9elements.com>
---
M src/soc/intel/denverton_ns/uart.c
1 file changed, 1 insertion(+), 6 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/37121/1
diff --git a/src/soc/intel/denverton_ns/uart.c b/src/soc/intel/denverton_ns/uart.c
index 28e0e2e..3b851ee 100644
--- a/src/soc/intel/denverton_ns/uart.c
+++ b/src/soc/intel/denverton_ns/uart.c
@@ -57,15 +57,10 @@
.enable = DEVICE_NOOP
};

-static const unsigned short uart_ids[] = {
- PCI_DEVICE_ID_INTEL_DENVERTON_HSUART,
- 0
-};
-
static const struct pci_driver uart_driver __pci_driver = {
.ops = &uart_ops,
.vendor = PCI_VENDOR_ID_INTEL,
- .devices = uart_ids
+ .device = PCI_DEVICE_ID_INTEL_DENVERTON_HSUART
};

static void hide_hsuarts(void)

To view, visit change 37121. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Icd325e1102a85cc175f6025519a47a1b64ee5b46
Gerrit-Change-Number: 37121
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger@posteo.net>
Gerrit-MessageType: newchange