From: Nikita Melnikov <slkw@sl.aanet.ru>
To: lkml <linux-kernel@vger.kernel.org>
Subject: pci_destroy_dev symbol when CONFIG_HOTPLUG is not set in 2.5.73
Date: Wed, 25 Jun 2003 14:29:07 +0400 [thread overview]
Message-ID: <20030625102907.GA23641@ku3> (raw)
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! :-)
next reply other threads:[~2003-06-25 10:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-25 10:29 Nikita Melnikov [this message]
2003-06-25 15:54 ` pci_destroy_dev symbol when CONFIG_HOTPLUG is not set in 2.5.73 Martin Schlemmer
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=20030625102907.GA23641@ku3 \
--to=slkw@sl.aanet.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox