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>
This commit is contained in:
Felix Singer 2019-11-22 00:31:48 +01:00 committed by Patrick Georgi
parent dbc90df35d
commit 23f870ad3a
1 changed files with 1 additions and 6 deletions

View File

@ -57,15 +57,10 @@ static struct device_operations uart_ops = {
.enable = DEVICE_NOOP .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 = { static const struct pci_driver uart_driver __pci_driver = {
.ops = &uart_ops, .ops = &uart_ops,
.vendor = PCI_VENDOR_ID_INTEL, .vendor = PCI_VENDOR_ID_INTEL,
.devices = uart_ids .device = PCI_DEVICE_ID_INTEL_DENVERTON_HSUART
}; };
static void hide_hsuarts(void) static void hide_hsuarts(void)