From: Richard Knutsson <ricknu-0@student.ltu.se>
To: Ben Dooks <ben-linux@fluff.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Vincent Sanders <vince@arm.linux.org.uk>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Richard Knutsson <ricknu-0@student.ltu.se>
Subject: [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver
Date: Sat, 24 Feb 2007 11:46:06 +0100 (MET) [thread overview]
Message-ID: <20070224104603.20765.30521.sendpatchset@thinktank.campus.ltu.se> (raw)
Replace pci_module_init with pci_register_driver
Signed-off-by: Richard Knutson <ricknu-0@student.ltu.se>
---
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)
next reply other threads:[~2007-02-24 10:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-24 10:46 Richard Knutsson [this message]
2007-02-24 15:42 ` [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver Ben Dooks
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=20070224104603.20765.30521.sendpatchset@thinktank.campus.ltu.se \
--to=ricknu-0@student.ltu.se \
--cc=akpm@linux-foundation.org \
--cc=ben-linux@fluff.org \
--cc=linux-kernel@vger.kernel.org \
--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