From: Felipe Contreras <al593181@mail.mty.itesm.mx>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Compaq hotplug fix for 2.5.23
Date: Wed, 19 Jun 2002 02:53:00 -0500 [thread overview]
Message-ID: <20020619075300.GA1098@zion.mty.itesm.mx> (raw)
[-- Attachment #1: Type: text/plain, Size: 88 bytes --]
Hi,
This one makes posible to compile the compaq hotplug module.
--
Felipe Contreras
[-- Attachment #2: cpq-hotplug.diff --]
[-- Type: text/plain, Size: 1427 bytes --]
diff -ur linux-2.5.23/drivers/hotplug/cpqphp.h linux-shx/drivers/hotplug/cpqphp.h
--- linux-2.5.23/drivers/hotplug/cpqphp.h Sun Jun 9 00:28:26 2002
+++ linux-shx/drivers/hotplug/cpqphp.h Wed Jun 19 02:13:23 2002
@@ -30,6 +30,7 @@
#include "pci_hotplug.h"
#include <asm/io.h> /* for read? and write? functions */
+#include <linux/tqueue.h>
#if !defined(CONFIG_HOTPLUG_PCI_COMPAQ_MODULE)
diff -ur linux-2.5.23/drivers/hotplug/cpqphp_pci.c linux-shx/drivers/hotplug/cpqphp_pci.c
--- linux-2.5.23/drivers/hotplug/cpqphp_pci.c Sun Jun 9 00:31:23 2002
+++ linux-shx/drivers/hotplug/cpqphp_pci.c Wed Jun 19 02:13:24 2002
@@ -37,6 +37,8 @@
#include "cpqphp_nvram.h"
#include "../../arch/i386/pci/pci.h" /* horrible hack showing how processor dependant we are... */
+#define TRUE 1
+#define FALSE 0
u8 cpqhp_nic_irq;
u8 cpqhp_disk_irq;
@@ -150,7 +152,7 @@
//Notify the drivers of the change
if (temp_func->pci_dev) {
pci_proc_attach_device(temp_func->pci_dev);
- pci_announce_device_to_drivers(temp_func->pci_dev);
+ run_sbin_hotplug(temp_func->pci_dev, TRUE);
}
return 0;
diff -ur linux-2.5.23/drivers/pci/hotplug.c linux-shx/drivers/pci/hotplug.c
--- linux-2.5.23/drivers/pci/hotplug.c Sun Jun 9 00:31:22 2002
+++ linux-shx/drivers/pci/hotplug.c Wed Jun 19 02:12:33 2002
@@ -101,3 +101,4 @@
EXPORT_SYMBOL(pci_insert_device);
EXPORT_SYMBOL(pci_remove_device);
+EXPORT_SYMBOL(run_sbin_hotplug);
next reply other threads:[~2002-06-19 7:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-19 7:53 Felipe Contreras [this message]
2002-06-19 17:47 ` Greg KH
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=20020619075300.GA1098@zion.mty.itesm.mx \
--to=al593181@mail.mty.itesm.mx \
--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
all inboxes | Powered by JetHome®