public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pci_destroy_dev symbol when CONFIG_HOTPLUG is not set in 2.5.73
@ 2003-06-25 10:29 Nikita Melnikov
  2003-06-25 15:54 ` Martin Schlemmer
  0 siblings, 1 reply; 2+ messages in thread
From: Nikita Melnikov @ 2003-06-25 10:29 UTC (permalink / raw)
  To: lkml

	If we don't have CONFIG_HOTPLUG make bzImage fails because it's
impossible to find pci_destroy_dev symbol. So this patch fixes
drivers/pci/hotplug.c.

----CUT----
--- hotplug.c	2003-06-25 14:12:21.000000000 +0400
+++ hotplug.c	2003-06-25 14:12:38.000000000 +0400
@@ -173,24 +173,6 @@
 }
 EXPORT_SYMBOL(pci_visit_dev);
 
-static void pci_destroy_dev(struct pci_dev *dev)
-{
-	pci_proc_detach_device(dev);
-	device_unregister(&dev->dev);
-
-	/* Remove the device from the device lists, and prevent any further
-	 * list accesses from this device */
-	spin_lock(&pci_bus_lock);
-	list_del(&dev->bus_list);
-	list_del(&dev->global_list);
-	dev->bus_list.next = dev->bus_list.prev = NULL;
-	dev->global_list.next = dev->global_list.prev = NULL;
-	spin_unlock(&pci_bus_lock);
-
-	pci_free_resources(dev);
-	pci_dev_put(dev);
-}
-
 /**
  * pci_remove_device_safe - remove an unused hotplug device
  * @dev: the device to remove
@@ -211,6 +193,25 @@
 
 #else /* CONFIG_HOTPLUG */
 
+static void pci_destroy_dev(struct pci_dev *dev)
+{
+	pci_proc_detach_device(dev);
+	device_unregister(&dev->dev);
+
+	/* Remove the device from the device lists, and prevent any further
+	 * list accesses from this device */
+	spin_lock(&pci_bus_lock);
+	list_del(&dev->bus_list);
+	list_del(&dev->global_list);
+	dev->bus_list.next = dev->bus_list.prev = NULL;
+	dev->global_list.next = dev->global_list.prev = NULL;
+	spin_unlock(&pci_bus_lock);
+
+	pci_free_resources(dev);
+	pci_dev_put(dev);
+}
+EXPORT_SYMBOL(pci_destroy_dev);
+
 int pci_hotplug (struct device *dev, char **envp, int num_envp,
 		 char *buffer, int buffer_size)
 {
----CUT----

PS: please CC: me, I'm not subscribed.

-- 
Nikita Melnikov
Don't beat me; this's my first post to linux-kernel! :-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pci_destroy_dev symbol when CONFIG_HOTPLUG is not set in 2.5.73
  2003-06-25 10:29 pci_destroy_dev symbol when CONFIG_HOTPLUG is not set in 2.5.73 Nikita Melnikov
@ 2003-06-25 15:54 ` Martin Schlemmer
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Schlemmer @ 2003-06-25 15:54 UTC (permalink / raw)
  To: Nikita Melnikov; +Cc: lkml

On Wed, 2003-06-25 at 12:29, Nikita Melnikov wrote:
> 	If we don't have CONFIG_HOTPLUG make bzImage fails because it's
> impossible to find pci_destroy_dev symbol. So this patch fixes
> drivers/pci/hotplug.c.
> 

Should already be fixed in latest -bk.

-- 
Martin Schlemmer



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-25 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-25 10:29 pci_destroy_dev symbol when CONFIG_HOTPLUG is not set in 2.5.73 Nikita Melnikov
2003-06-25 15:54 ` Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox