From: Anton Blanchard <anton@samba.org>
To: B.Zolnierkiewicz@elka.pw.edu.pl
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Fix PCI hotplug of promise IDE cards
Date: Tue, 8 Jun 2004 08:51:15 +1000 [thread overview]
Message-ID: <20040607225115.GC7412@krispykreme> (raw)
Hi,
It looks like no one has tried hotplugging Promise IDE cards :)
Anton
--
Change some __init functions in the pdc202xx driver to be __devinit, they
are used when hotpluging.
Signed-off-by: Anton Blanchard <anton@samba.org>
diff -puN drivers/ide/pci/pdc202xx_new.c~fix_promise_hotplug drivers/ide/pci/pdc202xx_new.c
--- gr_work/drivers/ide/pci/pdc202xx_new.c~fix_promise_hotplug 2004-06-07 02:44:59.180717024 -0500
+++ gr_work-anton/drivers/ide/pci/pdc202xx_new.c 2004-06-07 02:46:04.067307100 -0500
@@ -404,7 +404,7 @@ static void __devinit apple_kiwi_init(st
}
#endif /* CONFIG_PPC_PMAC */
-static unsigned int __init init_chipset_pdcnew (struct pci_dev *dev, const char *name)
+static unsigned int __devinit init_chipset_pdcnew (struct pci_dev *dev, const char *name)
{
if (dev->resource[PCI_ROM_RESOURCE].start) {
pci_write_config_dword(dev, PCI_ROM_ADDRESS,
@@ -429,7 +429,7 @@ static unsigned int __init init_chipset_
return dev->irq;
}
-static void __init init_hwif_pdc202new (ide_hwif_t *hwif)
+static void __devinit init_hwif_pdc202new (ide_hwif_t *hwif)
{
hwif->autodma = 0;
@@ -457,12 +457,12 @@ static void __init init_hwif_pdc202new (
#endif /* PDC202_DEBUG_CABLE */
}
-static void __init init_setup_pdcnew (struct pci_dev *dev, ide_pci_device_t *d)
+static void __devinit init_setup_pdcnew (struct pci_dev *dev, ide_pci_device_t *d)
{
ide_setup_pci_device(dev, d);
}
-static void __init init_setup_pdc20270 (struct pci_dev *dev, ide_pci_device_t *d)
+static void __devinit init_setup_pdc20270 (struct pci_dev *dev, ide_pci_device_t *d)
{
struct pci_dev *findev = NULL;
@@ -488,7 +488,7 @@ static void __init init_setup_pdc20270 (
ide_setup_pci_device(dev, d);
}
-static void __init init_setup_pdc20276 (struct pci_dev *dev, ide_pci_device_t *d)
+static void __devinit init_setup_pdc20276 (struct pci_dev *dev, ide_pci_device_t *d)
{
if ((dev->bus->self) &&
(dev->bus->self->vendor == PCI_VENDOR_ID_INTEL) &&
_
next reply other threads:[~2004-06-07 22:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-07 22:51 Anton Blanchard [this message]
2004-06-09 10:37 ` [PATCH] Fix PCI hotplug of promise IDE cards Bartlomiej Zolnierkiewicz
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=20040607225115.GC7412@krispykreme \
--to=anton@samba.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=akpm@osdl.org \
--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