All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] agpgart splitup and cleanup for 2.5.25
Date: Fri, 12 Jul 2002 15:17:44 -0700	[thread overview]
Message-ID: <20020712221744.GG11007@kroah.com> (raw)
In-Reply-To: <20020711230222.GA5143@kroah.com>

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");
+		return -ENODEV;
+	}
 
 	ret_val = agp_backend_initialize(dev);
 	if (ret_val) {

  parent reply	other threads:[~2002-07-12 22:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-11 23:02 [PATCH] agpgart splitup and cleanup for 2.5.25 Greg KH
2002-07-11 23:18 ` Greg KH
2002-07-12 12:56   ` Dave Jones
2002-07-12 22:17 ` Greg KH [this message]
2002-07-15  8:17   ` Geert Uytterhoeven
2002-07-16  0:10     ` Greg KH
2002-07-15  5:38 ` Linus Torvalds
2002-07-15  8:46   ` Dave Jones
2002-07-15 16:42     ` Jeff Garzik
2002-07-15 16:45       ` Dave Jones
2002-07-15 18:23         ` Linus Torvalds
2002-07-28 14:06 ` Tommy Faasen
2002-07-28 19:00   ` Greg KH
2002-07-28 19:09     ` Dave Jones
2002-07-28 19:23     ` root

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020712221744.GG11007@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.