From: Saeed Bishara <saeed@marvell.com>
To: linux-input@vger.kernel.org
Cc: saeed.bishara@gmail.com, Saeed Bishara <saeed@marvell.com>
Subject: [PATCH] gpio_mouse: use standard driver registration method
Date: Wed, 24 Jun 2009 11:31:39 +0300 [thread overview]
Message-ID: <1245832299-23608-1-git-send-email-saeed@marvell.com> (raw)
This patch is needed when the gpio's became available only at late
stages, for example, when using i2c gpio expander.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
---
drivers/input/mouse/gpio_mouse.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/mouse/gpio_mouse.c b/drivers/input/mouse/gpio_mouse.c
index 5e5eb88..f468864 100644
--- a/drivers/input/mouse/gpio_mouse.c
+++ b/drivers/input/mouse/gpio_mouse.c
@@ -175,6 +175,7 @@ MODULE_ALIAS("platform:gpio_mouse");
static struct platform_driver gpio_mouse_device_driver = {
.remove = __devexit_p(gpio_mouse_remove),
+ .probe = gpio_mouse_probe,
.driver = {
.name = "gpio_mouse",
.owner = THIS_MODULE,
@@ -183,8 +184,7 @@ static struct platform_driver gpio_mouse_device_driver = {
static int __init gpio_mouse_init(void)
{
- return platform_driver_probe(&gpio_mouse_device_driver,
- gpio_mouse_probe);
+ return platform_driver_register(&gpio_mouse_device_driver);
}
module_init(gpio_mouse_init);
--
1.6.0.4
next reply other threads:[~2009-06-24 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 8:31 Saeed Bishara [this message]
2009-06-30 2:31 ` [PATCH] gpio_mouse: use standard driver registration method Dmitry Torokhov
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=1245832299-23608-1-git-send-email-saeed@marvell.com \
--to=saeed@marvell.com \
--cc=linux-input@vger.kernel.org \
--cc=saeed.bishara@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).