All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] Switch to pci_register_driver
@ 2007-06-19 10:31 Jan Kiszka
  2007-06-19 19:26 ` Wolfgang Grandegger
  2007-06-21 11:20 ` Wolfgang Grandegger
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2007-06-19 10:31 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

Hi Wolfgang,

can we just switch over to pci_register_driver in order to avoid
deprecated (and soon removed) pci_module_init? Or do we also need some
wrapper for older 2.4 kernels (latest 2.4 is already aligned with 2.6)?

Jan


Index: ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c
===================================================================
--- ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c	(Revision 2609)
+++ ksrc/drivers/can/sja1000/rtcan_ixxat_pci.c	(Arbeitskopie)
@@ -307,7 +307,7 @@ static struct pci_driver rtcan_ixxat_pci

 static int __init rtcan_ixxat_pci_init(void)
 {
-    return pci_module_init(&rtcan_ixxat_pci_driver);
+    return pci_register_driver(&rtcan_ixxat_pci_driver);
 }


Index: ksrc/drivers/can/sja1000/rtcan_peak_pci.c
===================================================================
--- ksrc/drivers/can/sja1000/rtcan_peak_pci.c	(Revision 2609)
+++ ksrc/drivers/can/sja1000/rtcan_peak_pci.c	(Arbeitskopie)
@@ -346,7 +346,7 @@ static struct pci_driver rtcan_peak_pci_

 static int __init rtcan_peak_pci_init(void)
 {
-    return pci_module_init(&rtcan_peak_pci_driver);
+    return pci_register_driver(&rtcan_peak_pci_driver);
 }




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

end of thread, other threads:[~2007-06-21 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 10:31 [Xenomai-core] [PATCH] Switch to pci_register_driver Jan Kiszka
2007-06-19 19:26 ` Wolfgang Grandegger
2007-06-21 11:20 ` Wolfgang Grandegger
2007-06-21 13:48   ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.