All of lore.kernel.org
 help / color / mirror / Atom feed
From: chris.hudson.comp.eng@gmail.com
To: linux-input@vger.kernel.org
Cc: dmitry.torokhov@gmail.com, jic23@cam.ac.uk,
	Chris Hudson <chudson@kionix.com>
Subject: [PATCH] kxtj9: fix input device allocation sequence
Date: Wed, 13 Jul 2011 10:48:39 -0400	[thread overview]
Message-ID: <1310568519-28103-1-git-send-email-chris.hudson.comp.eng@gmail.com> (raw)

From: Chris Hudson <chudson@kionix.com>

Small bug fix patch against the driver version in Dmitry's queue.  Resulting
driver tested on hardware in both polled and IRQ modes.

Signed-off-by: Chris Hudson <chudson@kionix.com>
---
 drivers/input/misc/kxtj9.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c
index 1788390..1799430 100644
--- a/drivers/input/misc/kxtj9.c
+++ b/drivers/input/misc/kxtj9.c
@@ -426,7 +426,7 @@ static int __devinit kxtj9_setup_polled_device(struct kxtj9_data *tj9)
 	struct input_polled_dev *poll_dev;
 	poll_dev = input_allocate_polled_device();
 
-	if (!tj9->poll_dev) {
+	if (!poll_dev) {
 		dev_err(&tj9->client->dev,
 			"Failed to allocate polled device\n");
 		return -ENOMEM;
-- 
1.5.4.3


             reply	other threads:[~2011-07-13 14:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 14:48 chris.hudson.comp.eng [this message]
2011-07-20  6:15 ` [PATCH] kxtj9: fix input device allocation sequence 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=1310568519-28103-1-git-send-email-chris.hudson.comp.eng@gmail.com \
    --to=chris.hudson.comp.eng@gmail.com \
    --cc=chudson@kionix.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jic23@cam.ac.uk \
    --cc=linux-input@vger.kernel.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.