diff options
author | Simon Glass <sjg@chromium.org> | 2015-07-27 15:47:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-05 08:42:41 -0600 |
commit | 5f48d798eb151f50d79b93913b59190a679ee9b5 (patch) | |
tree | 691bb8c5bbd71ccf9cd1c16536a54ecafe96ccac /drivers | |
parent | f134ed7df1167c6b2f0a62e3765abedced3feacc (diff) | |
download | u-boot-imx-5f48d798eb151f50d79b93913b59190a679ee9b5.zip u-boot-imx-5f48d798eb151f50d79b93913b59190a679ee9b5.tar.gz u-boot-imx-5f48d798eb151f50d79b93913b59190a679ee9b5.tar.bz2 |
pci: Add a constant for an invalid interrupt
Rather than using 0xff in the code, add a constant.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index df50b48..645ecd4 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -269,7 +269,8 @@ int pci_hose_config_device(struct pci_controller *hose, /* Disable interrupt line, if device says it wants to use interrupts */ pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_PIN, &pin); if (pin != 0) { - pci_hose_write_config_byte(hose, dev, PCI_INTERRUPT_LINE, 0xff); + pci_hose_write_config_byte(hose, dev, PCI_INTERRUPT_LINE, + PCI_INTERRUPT_LINE_DISABLE); } pci_hose_read_config_dword(hose, dev, PCI_COMMAND, &old_command); |