From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: <467A5EEA.1020608@domain.hid> References: <4677B095.3070903@domain.hid> <467A5EEA.1020608@domain.hid> Content-Type: text/plain Date: Thu, 21 Jun 2007 15:48:57 +0200 Message-Id: <1182433737.9709.53.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-core] [PATCH] Switch to pci_register_driver Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Grandegger Cc: Jan Kiszka , xenomai-core On Thu, 2007-06-21 at 13:20 +0200, Wolfgang Grandegger wrote: > Hi Jan, > > Jan Kiszka wrote: > > 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)? > > It works with 2.4.25, at least and from my point of view it can be applied. > Ok, so that's fine with me too. Please apply. > Thanks. > > Wolfgang. > > > 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); > > } > > > > > > > > > _______________________________________________ > Xenomai-core mailing list > Xenomai-core@domain.hid > https://mail.gna.org/listinfo/xenomai-core -- Philippe.