Commit 2a642a81 authored by Dave Jones's avatar Dave Jones

[AGPGART] Make agp=off boot param work for Intel AGP drivers.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 07de993e
......@@ -1810,6 +1810,8 @@ static struct pci_driver agp_intel_pci_driver = {
static int __init agp_intel_init(void)
{
if (agp_off)
return -EINVAL;
return pci_module_init(&agp_intel_pci_driver);
}
......
......@@ -622,6 +622,8 @@ static struct pci_driver agp_intelmch_pci_driver = {
int __init agp_intelmch_init(void)
{
static int agp_initialised=0;
if (agp_off)
return -EINVAL;
if (agp_initialised == 1)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment