Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180093
b: refs/heads/master
c: 61684ce
h: refs/heads/master
i:
  180091: 0a94053
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Jan 31, 2010
1 parent 910ac7e commit 84caa6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: 7c099ce1575126395f186ecf58b51a60d5c3be7d
refs/heads/master: 61684ceaad4f65d1a9832c722f7bd5e7fc714de9
13 changes: 9 additions & 4 deletions trunk/drivers/char/agp/amd64-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,6 @@ int __init agp_amd64_init(void)
if (agp_off)
return -EINVAL;

if (gart_iommu_aperture)
return agp_bridges_found ? 0 : -ENODEV;

err = pci_register_driver(&agp_amd64_pci_driver);
if (err < 0)
return err;
Expand Down Expand Up @@ -768,6 +765,14 @@ int __init agp_amd64_init(void)
return err;
}

static int __init agp_amd64_mod_init(void)
{
if (gart_iommu_aperture)
return agp_bridges_found ? 0 : -ENODEV;

return agp_amd64_init();
}

static void __exit agp_amd64_cleanup(void)
{
if (gart_iommu_aperture)
Expand All @@ -777,7 +782,7 @@ static void __exit agp_amd64_cleanup(void)
pci_unregister_driver(&agp_amd64_pci_driver);
}

module_init(agp_amd64_init);
module_init(agp_amd64_mod_init);
module_exit(agp_amd64_cleanup);

MODULE_AUTHOR("Dave Jones <davej@redhat.com>, Andi Kleen");
Expand Down

0 comments on commit 84caa6e

Please sign in to comment.