From patchwork Fri Sep 3 01:08:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 151751 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 o8314qut028843 for ; Fri, 3 Sep 2010 01:04:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433Ab0ICBEI (ORCPT ); Thu, 2 Sep 2010 21:04:08 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:64308 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593Ab0ICBEH (ORCPT ); Thu, 2 Sep 2010 21:04:07 -0400 Received: by ywh1 with SMTP id 1so481192ywh.19 for ; Thu, 02 Sep 2010 18:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=dd6lwh1mp6aIifV0LbH+ctQ2voGLApoJ8q4YlhwC0ZQ=; b=ThyMYD94nUTCp5NeumTE2ga54sGwqdOBz5a0+dI+EEKuVb7WsZ9aMXT5+5LS4EzPeH EacypD+mPaWuI/yHlMXAYba5eiQgrW1RaeLS9NOAWDKdGZ9AFK8KMxXgjCli2E958gbL 74bERXqRnfxmTpppTlsRB58x/iWTmeFcyFq10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=ddCVtk530sddpeUJxlpNe52KjVzzt00EQfjBbhj1LhROC2xQN97s5Ru8bG/BrzdF56 dWZprNIBnlcAo+EU4ZwTIR8Tm1QSrfEgJnP3mhuc5Ow1pND6xgyBCU5nszxa70Qsbh0w rMf+6GMLKXvZgvG1kAEA0O1E24QUOWQMUcY3U= Received: by 10.101.145.40 with SMTP id x40mr11136606ann.261.1283475846063; Thu, 02 Sep 2010 18:04:06 -0700 (PDT) Received: from [192.168.100.50] (60-251-136-127.HINET-IP.hinet.net [60.251.136.127]) by mx.google.com with ESMTPS id q7sm1614426anf.26.2010.09.02.18.04.03 (version=SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 18:04:05 -0700 (PDT) Subject: [PATCH] Input: tps6507x-ts - call input_unregister_device instead of input_free_device in tps6507x_ts_remove From: Axel Lin To: linux-kernel Cc: Todd Fischer , Dmitry Torokhov , linux-input@vger.kernel.org Date: Fri, 03 Sep 2010 09:08:07 +0800 Message-Id: <1283476087.5439.1.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 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]); Fri, 03 Sep 2010 01:04:53 +0000 (UTC) diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index 7286209..c8c136c 100644 --- a/drivers/input/touchscreen/tps6507x-ts.c +++ b/drivers/input/touchscreen/tps6507x-ts.c @@ -359,7 +359,7 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev) cancel_delayed_work_sync(&tsc->work); destroy_workqueue(tsc->wq); - input_free_device(input_dev); + input_unregister_device(input_dev); tps6507x_dev->ts = NULL; kfree(tsc);