From patchwork Fri May 3 10:28:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516781 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 81552DF2E5 for ; Fri, 3 May 2013 10:42:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762128Ab3ECKmK (ORCPT ); Fri, 3 May 2013 06:42:10 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:57670 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761851Ab3ECKmK (ORCPT ); Fri, 3 May 2013 06:42:10 -0400 Received: by mail-pd0-f173.google.com with SMTP id v10so860430pde.4 for ; Fri, 03 May 2013 03:42:09 -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=kVWm9kENRwgMxeKN0tEggQ3ChGcCtlNuXydbizSLdGI=; b=Nm+RWoatNn5NM2v9+c+0cJ5VFherLG+Pe3mf/rjFPexQ1qwvvwM3cb3r44LSMTmSfS 2jN/+aGnUjNudj/da/wr4JnjxaQ7nTCMBJzJg5q6K8wB2VuMn8T9y5r938QSTmO2uhos icHWS/2WO+ELCqjwvZ2UAtq/WHLq5QEKt4ndi8jpKrCCK5PTXU5iSmQOUD6lSHwLfM9V NJ+EUZ/N0AW871mIU0vSIILevPurXKxOElOTn55ART7Edgtj3UYiMJjzT/KWinowAs5W Qisry1I9IXRovhMf4QTuFYryQzcvV7u/LRWg/oaNr954I46B1Ai3Ek/bLrHMsWlzF0rx zYYQ== X-Received: by 10.68.19.103 with SMTP id d7mr1118465pbe.156.1367577729671; Fri, 03 May 2013 03:42:09 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id hp1sm12366018pac.3.2013.05.03.03.42.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:42:09 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 8/9] Input: tnetv107x-ts - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:41 +0530 Message-Id: <1367576922-31459-8-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: ALoCoQnCSpLIp+MSUGIdvSKjf3a1DiKR/fw+L7oLbqJ6TwBK7UermDMsOZWGeuaSGXXzw3bMfAlL 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 --- drivers/input/touchscreen/tnetv107x-ts.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/tnetv107x-ts.c b/drivers/input/touchscreen/tnetv107x-ts.c index acfb876..c47827a 100644 --- a/drivers/input/touchscreen/tnetv107x-ts.c +++ b/drivers/input/touchscreen/tnetv107x-ts.c @@ -351,7 +351,6 @@ error_clk: error_map: release_mem_region(ts->res->start, resource_size(ts->res)); error_res: - platform_set_drvdata(pdev, NULL); kfree(ts); return error; @@ -366,7 +365,6 @@ static int tsc_remove(struct platform_device *pdev) clk_put(ts->clk); iounmap(ts->regs); release_mem_region(ts->res->start, resource_size(ts->res)); - platform_set_drvdata(pdev, NULL); kfree(ts); return 0;