diff options
Diffstat (limited to 'drivers/pci/rom.c')
-rw-r--r-- | drivers/pci/rom.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pci/rom.c b/drivers/pci/rom.c index 1f5e6af96c83..374a33443be9 100644 --- a/drivers/pci/rom.c +++ b/drivers/pci/rom.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * drivers/pci/rom.c | 3 | * drivers/pci/rom.c |
3 | * | 4 | * |
@@ -92,15 +93,15 @@ size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size) | |||
92 | void __iomem *pds; | 93 | void __iomem *pds; |
93 | /* Standard PCI ROMs start out with these bytes 55 AA */ | 94 | /* Standard PCI ROMs start out with these bytes 55 AA */ |
94 | if (readw(image) != 0xAA55) { | 95 | if (readw(image) != 0xAA55) { |
95 | dev_err(&pdev->dev, "Invalid PCI ROM header signature: expecting 0xaa55, got %#06x\n", | 96 | pci_info(pdev, "Invalid PCI ROM header signature: expecting 0xaa55, got %#06x\n", |
96 | readw(image)); | 97 | readw(image)); |
97 | break; | 98 | break; |
98 | } | 99 | } |
99 | /* get the PCI data structure and check its "PCIR" signature */ | 100 | /* get the PCI data structure and check its "PCIR" signature */ |
100 | pds = image + readw(image + 24); | 101 | pds = image + readw(image + 24); |
101 | if (readl(pds) != 0x52494350) { | 102 | if (readl(pds) != 0x52494350) { |
102 | dev_err(&pdev->dev, "Invalid PCI ROM data signature: expecting 0x52494350, got %#010x\n", | 103 | pci_info(pdev, "Invalid PCI ROM data signature: expecting 0x52494350, got %#010x\n", |
103 | readl(pds)); | 104 | readl(pds)); |
104 | break; | 105 | break; |
105 | } | 106 | } |
106 | last_image = readb(pds + 21) & 0x80; | 107 | last_image = readb(pds + 21) & 0x80; |