All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH] Switch to pci_register_driver
Date: Thu, 21 Jun 2007 13:20:10 +0200	[thread overview]
Message-ID: <467A5EEA.1020608@domain.hid> (raw)
In-Reply-To: <4677B095.3070903@domain.hid>

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.

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);
>  }
> 
> 
> 



  parent reply	other threads:[~2007-06-21 11:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-06-21 13:48   ` Philippe Gerum

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=467A5EEA.1020608@domain.hid \
    --to=wg@domain.hid \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.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 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.