From patchwork Fri May 3 10:28:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516741 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A7B29DF2E5 for ; Fri, 3 May 2013 10:41:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760816Ab3ECKl6 (ORCPT ); Fri, 3 May 2013 06:41:58 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:46617 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKl5 (ORCPT ); Fri, 3 May 2013 06:41:57 -0400 Received: by mail-pa0-f52.google.com with SMTP id bg2so860894pad.25 for ; Fri, 03 May 2013 03:41:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=9tPz+deDmBGgv5vhTfVc7SrdlenjYt32yZ+aN9LG688=; b=WqXk1p9vBcxXOm/JdWw0AXV/mHihvVBYU7n0azr45mSRZSxA50EGZkD5VXOFMQBR9Y AzoztEyu29yOzo1FU9G+4MAxpjKGWwebg/mXGNloev7ljpJpmSvBGOq7V7EpzNQjQNay 6r+K/W+KfFPzdNmkLIZwaNKnth1IR1ycY0/AIg88u9zBxzxmDs2Rz6YgwDieyXhTSbx2 5ZPCqn5BFGQTtHxofF0oa5bFhP3XEhpU7LMwzWgh1reco4TvimAMhSZlLlVmzRp3o1hy L/MhSefRLOiDUipBSRODPso+DIyVdjHwRHeqRV3hqxnpn9U8KwY+aUSNpopQi4V4DjmE 5nog== X-Received: by 10.66.224.73 with SMTP id ra9mr3729094pac.163.1367577717162; Fri, 03 May 2013 03:41:57 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id hp1sm12366018pac.3.2013.05.03.03.41.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:41:56 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, "Sreedhara Murthy. D.S." Subject: [PATCH 4/9] Input: intel-mid-touch: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:37 +0530 Message-Id: <1367576922-31459-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> References: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQk7nqRswIkfg9ptHx0a84l7lS3Ffo4UWdGT2kSg8eMRd4G1PGHuSPsi1aiCU1abRAdRbaqV Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Cc: Sreedhara Murthy. D.S. --- drivers/input/touchscreen/intel-mid-touch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/intel-mid-touch.c b/drivers/input/touchscreen/intel-mid-touch.c index 465db5d..e30d837 100644 --- a/drivers/input/touchscreen/intel-mid-touch.c +++ b/drivers/input/touchscreen/intel-mid-touch.c @@ -651,8 +651,6 @@ static int mrstouch_remove(struct platform_device *pdev) input_unregister_device(tsdev->input); kfree(tsdev); - platform_set_drvdata(pdev, NULL); - return 0; }