summaryrefslogtreecommitdiff
path: root/src/soc/intel/denverton_ns
diff options
context:
space:
mode:
authorFelix Singer <felix.singer@9elements.com>2019-11-22 00:31:48 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-02 19:13:39 +0000
commit23f870ad3a59983533c502e5dd744edde054d193 (patch)
tree3f062e63bd95fefa1c6cee8385fc84850aa4ae0a /src/soc/intel/denverton_ns
parentdbc90df35d814ad0d039793139c3e7e683ee0310 (diff)
downloadcoreboot-23f870ad3a59983533c502e5dd744edde054d193.tar.xz
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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37121 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/intel/denverton_ns')
-rw-r--r--src/soc/intel/denverton_ns/uart.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/soc/intel/denverton_ns/uart.c b/src/soc/intel/denverton_ns/uart.c
index 28e0e2e551..3b851ee973 100644
--- a/src/soc/intel/denverton_ns/uart.c
+++ b/src/soc/intel/denverton_ns/uart.c
@@ -57,15 +57,10 @@ static struct device_operations uart_ops = {
.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)