]> err.no Git - linux-2.6/commit
amd64-agp: run fallback when no bridges found, not when driver registration fails
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 30 Jul 2008 19:26:51 +0000 (12:26 -0700)
committerDave Airlie <airlied@redhat.com>
Tue, 12 Aug 2008 00:13:37 +0000 (10:13 +1000)
commit55814b74c95a73dae6795e167294e6edc733aae9
tree3802b06298c7f2796546e70779e1094bc585973f
parent99d32bd5c7b1caa05d1fe3c89b08aabd459bc12a
amd64-agp: run fallback when no bridges found, not when driver registration fails

I think the intent was that if no bridges matched agp_amd64_pci_table[],
we would fall back to checking for any bridge with the AGP capability.
But in the current code, we execute the fallback path only when
pci_register_driver() itself fails, which is unrelated to whether any
matching devices were found.

This patch counts the AGP bridges found in the probe() method and executes
the fallback path when none is found.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/amd64-agp.c