* [PATCH] pci: mark pci_module_init() as deprecated 2nd try
@ 2006-09-25 19:16 Henne
2006-09-27 1:02 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Henne @ 2006-09-25 19:16 UTC (permalink / raw)
To: Greg KH, Andrew Morton; +Cc: linux-pci, linux-kernel
Hi!
Since nearly all pci_module_init()'s are removed from the tree (19 left), heres the patch for
2.6.18-git4.
In the mm-patchset it's called:
mark-pci_module_init-deprecated.patch
and can be removed if acked by greg.
Greets,
Henne
From: Henrik Kretzschmar <henne@nachtwindheim.de>
Changes the pci_module_init macro into a deprecated inline function.
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
--- linux-2.6/include/linux/pci.h 2006-08-01 01:31:59.000000000 +0200
+++ linux-2.6.18-git4/include/linux/pci.h 2006-09-25 21:01:47.000000000 +0200
@@ -384,12 +384,6 @@
.vendor = PCI_ANY_ID, .device = PCI_ANY_ID, \
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
-/*
- * pci_module_init is obsolete, this stays here till we fix up all usages of it
- * in the tree.
- */
-#define pci_module_init pci_register_driver
-
/* these external functions are only available when PCI support is enabled */
#ifdef CONFIG_PCI
@@ -547,6 +541,16 @@
return __pci_register_driver(driver, THIS_MODULE);
}
+/*
+ * pci_module_init is obsolete, this stays here till we fix up all usages of it
+ * in the tree.
+ */
+
+static inline int __deprecated pci_module_init(struct pci_driver* drv)
+{
+ return pci_register_driver(drv);
+}
+
void pci_unregister_driver(struct pci_driver *);
void pci_remove_behind_bridge(struct pci_dev *);
struct pci_driver *pci_dev_driver(const struct pci_dev *);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pci: mark pci_module_init() as deprecated 2nd try
2006-09-25 19:16 [PATCH] pci: mark pci_module_init() as deprecated 2nd try Henne
@ 2006-09-27 1:02 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-09-27 1:02 UTC (permalink / raw)
To: Henne; +Cc: Greg KH, linux-pci, linux-kernel
On Mon, 25 Sep 2006 21:16:02 +0200
Henne <henne@nachtwindheim.de> wrote:
> Since nearly all pci_module_init()'s are removed from the tree (19 left), heres the patch for
> 2.6.18-git4.
>
> In the mm-patchset it's called:
> mark-pci_module_init-deprecated.patch
> and can be removed if acked by greg.
>
> Greets,
> Henne
>
> From: Henrik Kretzschmar <henne@nachtwindheim.de>
>
> Changes the pci_module_init macro into a deprecated inline function.
> Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
You didn't need to send this patch. I already have it queued up, behind
some more of the pci_module_init-conversion patches, which is the
appropriate place for it. It's also behind 1,800-odd other patches.
Patience - at 200/day, we'll get there eventually.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-27 1:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 19:16 [PATCH] pci: mark pci_module_init() as deprecated 2nd try Henne
2006-09-27 1:02 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox