public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: Richard Knutsson <ricknu-0@student.ltu.se>
Cc: Ben Dooks <ben-linux@fluff.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Vincent Sanders <vince@arm.linux.org.uk>,
	linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver
Date: Sat, 24 Feb 2007 15:42:17 +0000	[thread overview]
Message-ID: <20070224154217.GK14228@trinity.fluff.org> (raw)
In-Reply-To: <20070224104603.20765.30521.sendpatchset@thinktank.campus.ltu.se>

On Sat, Feb 24, 2007 at 11:46:06AM +0100, Richard Knutsson wrote:
> Replace pci_module_init with pci_register_driver

Thankyou for spotting this.
 
> Signed-off-by: Richard Knutson <ricknu-0@student.ltu.se>
Acked-by: Ben Dooks <ben-linux@fluff.org>
> ---
> Compile-tested with "allyes", "allmod" & "allno" on i386
> 
> diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
> index 5c5a1e2..c707c8e 100644
> --- a/drivers/mfd/sm501.c
> +++ b/drivers/mfd/sm501.c
> @@ -1131,7 +1131,7 @@ static struct platform_driver sm501_plat_drv = {
>  static int __init sm501_base_init(void)
>  {
>  	platform_driver_register(&sm501_plat_drv);
> -	return pci_module_init(&sm501_pci_drv);
> +	return pci_register_driver(&sm501_pci_drv);
>  }
>  
>  static void __exit sm501_base_exit(void)

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.


      reply	other threads:[~2007-02-24 15:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24 10:46 [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver Richard Knutsson
2007-02-24 15:42 ` Ben Dooks [this message]

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=20070224154217.GK14228@trinity.fluff.org \
    --to=ben-linux@fluff.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ricknu-0@student.ltu.se \
    --cc=torvalds@linux-foundation.org \
    --cc=vince@arm.linux.org.uk \
    /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