Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294819
b: refs/heads/master
c: 474d567
h: refs/heads/master
i:
  294817: ff554db
  294815: 22668e6
v: v3
  • Loading branch information
Joerg Roedel committed Mar 15, 2012
1 parent 42d8351 commit 3dd9cc4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 525b233c7188069a360a898493d9b51ee8adec35
refs/heads/master: 474d567db3d459d08ed0e683f4ace9b00ac2aa4b
14 changes: 13 additions & 1 deletion trunk/drivers/iommu/amd_iommu_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,16 @@ static int __init amd_iommu_v2_init(void)
size_t state_table_size;
int ret;

pr_info("AMD IOMMUv2 driver by Joerg Roedel <joerg.roedel@amd.com>");
pr_info("AMD IOMMUv2 driver by Joerg Roedel <joerg.roedel@amd.com>\n");

if (!amd_iommu_v2_supported()) {
pr_info("AMD IOMMUv2 functionality not available on this sytem\n");
/*
* Load anyway to provide the symbols to other modules
* which may use AMD IOMMUv2 optionally.
*/
return 0;
}

spin_lock_init(&state_lock);

Expand Down Expand Up @@ -961,6 +970,9 @@ static void __exit amd_iommu_v2_exit(void)
size_t state_table_size;
int i;

if (!amd_iommu_v2_supported())
return;

profile_event_unregister(PROFILE_TASK_EXIT, &profile_nb);
amd_iommu_unregister_ppr_notifier(&ppr_nb);

Expand Down

0 comments on commit 3dd9cc4

Please sign in to comment.