Re: [PATCH] agpgart splitup and cleanup for 2.5.25
Geert Uytterhoeven (geert@linux-m68k.org)
Mon, 15 Jul 2002 10:17:22 +0200 (MEST)
On Fri, 12 Jul 2002, Greg KH wrote:
> Dave Jones found a bug in this patch that causes the driver to try to
> bind to multiple busses :(
>
> This patch seems to fix this problem.
>
> thanks,
>
> greg k-h
>
>
> diff -Nru a/drivers/char/agp/agpgart_be.c b/drivers/char/agp/agpgart_be.c
> --- a/drivers/char/agp/agpgart_be.c Fri Jul 12 14:57:41 2002
> +++ b/drivers/char/agp/agpgart_be.c Fri Jul 12 14:57:41 2002
> @@ -47,7 +47,7 @@
> EXPORT_SYMBOL(agp_backend_acquire);
> EXPORT_SYMBOL(agp_backend_release);
>
> -struct agp_bridge_data agp_bridge;
> +struct agp_bridge_data agp_bridge = { type: NOT_SUPPORTED };
> static int agp_try_unsupported __initdata = 0;
>
> int agp_backend_acquire(void)
> @@ -1593,6 +1593,11 @@
> static int agp_probe (struct pci_dev *dev, const struct pci_device_id *ent)
> {
> int ret_val;
> +
> + if (agp_bridge.type != NOT_SUPPORTED) {
> + printk (KERN_DEBUG "Oops, don't init a 2nd agpgard device.\n");
^^^^^^^
agpgart?
> + return -ENODEV;
> + }
>
> ret_val = agp_backend_initialize(dev);
> if (ret_val) {
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/