x86/agp: Fix amd64-agp module initialization regression
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 4 Feb 2010 05:43:38 +0000 (14:43 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Feb 2010 06:27:26 +0000 (07:27 +0100)
commit06df6dafb5d9e3cfa3588c6ce79328b91582b6af
tree561bc434deee6e6f78cf94bdd9b63cf35203838d
parentab09809f2eee1dc2d8f8bea636e77d176ba6c648
x86/agp: Fix amd64-agp module initialization regression

This fixes the regression introduced by commit
42590a75019a50012f25a962246498dead428433 ("x86/agp: Fix
agp_amd64_init and agp_amd64_cleanup").

The commit 61684ceaad4f65d1a9832c722f7bd5e7fc714de9 fixed the
above regression but it's not enough. When amd64-agp is built as
a module, AGP isn't initialized, iommu is initialized, all the
aperture is owned by the iommu.

Reported-by: Marin Mitov <mitov@issp.bas.bg>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Marin Mitov <mitov@issp.bas.bg>
LKML-Reference: <20100204090802S.fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/char/agp/amd64-agp.c