diff options
Diffstat (limited to 'drivers/pci/dmar.c')
-rw-r--r-- | drivers/pci/dmar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c index d281a03695f7..ceb338dfa3f2 100644 --- a/drivers/pci/dmar.c +++ b/drivers/pci/dmar.c | |||
@@ -397,10 +397,10 @@ dmar_find_matched_drhd_unit(struct pci_dev *dev) | |||
397 | 397 | ||
398 | int __init dmar_dev_scope_init(void) | 398 | int __init dmar_dev_scope_init(void) |
399 | { | 399 | { |
400 | struct dmar_drhd_unit *drhd; | 400 | struct dmar_drhd_unit *drhd, *drhd_n; |
401 | int ret = -ENODEV; | 401 | int ret = -ENODEV; |
402 | 402 | ||
403 | for_each_drhd_unit(drhd) { | 403 | list_for_each_entry_safe(drhd, drhd_n, &dmar_drhd_units, list) { |
404 | ret = dmar_parse_dev(drhd); | 404 | ret = dmar_parse_dev(drhd); |
405 | if (ret) | 405 | if (ret) |
406 | return ret; | 406 | return ret; |
@@ -408,8 +408,8 @@ int __init dmar_dev_scope_init(void) | |||
408 | 408 | ||
409 | #ifdef CONFIG_DMAR | 409 | #ifdef CONFIG_DMAR |
410 | { | 410 | { |
411 | struct dmar_rmrr_unit *rmrr; | 411 | struct dmar_rmrr_unit *rmrr, *rmrr_n; |
412 | for_each_rmrr_units(rmrr) { | 412 | list_for_each_entry_safe(rmrr, rmrr_n, &dmar_rmrr_units, list) { |
413 | ret = rmrr_parse_dev(rmrr); | 413 | ret = rmrr_parse_dev(rmrr); |
414 | if (ret) | 414 | if (ret) |
415 | return ret; | 415 | return ret; |