[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-crypto-vger
Subject: [PATCH 3/6] mtd: maps: amd76xrom: use pci_get_device_by_id()
From: "Enrico Weigelt, metux IT consult" <info () metux ! net>
Date: 2019-11-28 12:54:03
Message-ID: 20191128125406.10417-3-info () metux ! net
[Download RAW message or body]
Use the new pci_get_device_by_id() helper in order to reduce
a bit of boilerplate.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
drivers/mtd/maps/amd76xrom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/maps/amd76xrom.c b/drivers/mtd/maps/amd76xrom.c
index 462fadb56bdb..07a402dbdf44 100644
--- a/drivers/mtd/maps/amd76xrom.c
+++ b/drivers/mtd/maps/amd76xrom.c
@@ -323,7 +323,7 @@ static int __init init_amd76xrom(void)
const struct pci_device_id *id;
pdev = NULL;
for(id = amd76xrom_pci_tbl; id->vendor; id++) {
- pdev = pci_get_device(id->vendor, id->device, NULL);
+ pdev = pci_get_device_by_id(id);
if (pdev) {
break;
}
--
2.11.0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic