From patchwork Fri May 3 10:28:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516771 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 A00AEDF2E5 for ; Fri, 3 May 2013 10:42:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761066Ab3ECKmH (ORCPT ); Fri, 3 May 2013 06:42:07 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:52435 "EHLO mail-pb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKmH (ORCPT ); Fri, 3 May 2013 06:42:07 -0400 Received: by mail-pb0-f41.google.com with SMTP id mc17so846932pbc.14 for ; Fri, 03 May 2013 03:42:06 -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=Bn/4nczsiGy62YXW/PU7PSFX87YJw2S52rPcPMXykWc=; b=UU+8O7GHtaGbvg58Gm8ylVinsFjTRav83Es1eZvftGXcssDHZa4Gu/lwS/u2Zm8LLO zV/KpKiIRj0MhipqVu+8jv4eV36a0zaYEgzvzrmz3WHHstTZDlEQNCUEO1/mWEmUzCV3 lnoL6+EVBGyKCRTyb0/smB4e93JKuVlHgZeeMrzCcius3247CK4Y/1KZtC4mojxbv3wU DzELXRVL0+QZk5NH9xAnfC+xfpPTwMdQDTaaVpjIEHd2e3hhTTs9bQ0nPIgFvF+92uxH ImrMR1sKWNvZAqFJNnGtBh8LqyuMVtL8f7aHCagkxp2ETAJP0yzE+V0LkACqFJm/1NyH dYag== X-Received: by 10.68.197.34 with SMTP id ir2mr13260452pbc.47.1367577726751; Fri, 03 May 2013 03:42:06 -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.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:42:06 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Rachna Patil Subject: [PATCH 7/9] Input: ti_am335x_tsc: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:40 +0530 Message-Id: <1367576922-31459-7-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: ALoCoQlJjWNj5IL7SLi4j7ZTzuoc1KsYoqKo1bqYS4Q/kKoX/EYHkGYcbR+CQXEDEP9/vJe7F18Q 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: Rachna Patil --- drivers/input/touchscreen/ti_am335x_tsc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c index 51e7b87..50fb129 100644 --- a/drivers/input/touchscreen/ti_am335x_tsc.c +++ b/drivers/input/touchscreen/ti_am335x_tsc.c @@ -336,7 +336,6 @@ static int titsc_remove(struct platform_device *pdev) input_unregister_device(ts_dev->input); - platform_set_drvdata(pdev, NULL); kfree(ts_dev); return 0; }