From patchwork Tue Nov 16 20:41:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Leech X-Patchwork-Id: 329221 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAGKg0Pp029662 for ; Tue, 16 Nov 2010 20:42:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757138Ab0KPUl4 (ORCPT ); Tue, 16 Nov 2010 15:41:56 -0500 Received: from mga11.intel.com ([192.55.52.93]:42155 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757141Ab0KPUl4 (ORCPT ); Tue, 16 Nov 2010 15:41:56 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 16 Nov 2010 12:41:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,207,1288594800"; d="scan'208";a="858274236" Received: from cleech-lnx (HELO localhost6.localdomain6) ([10.7.197.231]) by fmsmga001.fm.intel.com with ESMTP; 16 Nov 2010 12:41:55 -0800 Subject: [PATCH 2/5] qt602240_ts: move clearing of pending interrupt closer to request_threaded_irq To: linux-input@vger.kernel.org From: Chris Leech Cc: Joonyoung Shim Date: Tue, 16 Nov 2010 12:41:55 -0800 Message-ID: <20101116204155.28796.6682.stgit@localhost6.localdomain6> In-Reply-To: <20101116203914.28796.23141.stgit@localhost6.localdomain6> References: <20101116203914.28796.23141.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 16 Nov 2010 20:42:06 +0000 (UTC) diff --git a/drivers/input/touchscreen/qt602240_ts.c b/drivers/input/touchscreen/qt602240_ts.c index 0b92c9d..95496ec 100644 --- a/drivers/input/touchscreen/qt602240_ts.c +++ b/drivers/input/touchscreen/qt602240_ts.c @@ -991,10 +991,6 @@ static int qt602240_initialize(struct qt602240_data *data) if (error) return error; - error = qt602240_make_highchg(data); - if (error) - return error; - qt602240_handle_pdata(data); /* Backup to memory */ @@ -1280,6 +1276,10 @@ static int __devinit qt602240_probe(struct i2c_client *client, if (error) goto err_free_object; + error = qt602240_make_highchg(data); + if (error) + goto err_free_object; + error = request_threaded_irq(client->irq, NULL, qt602240_interrupt, IRQF_TRIGGER_FALLING, client->dev.driver->name, data); if (error) {