From patchwork Fri May 3 10:28:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516731 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 3BC3BDF2E5 for ; Fri, 3 May 2013 10:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760745Ab3ECKlr (ORCPT ); Fri, 3 May 2013 06:41:47 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:48197 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKlr (ORCPT ); Fri, 3 May 2013 06:41:47 -0400 Received: by mail-pd0-f177.google.com with SMTP id g10so842685pdj.8 for ; Fri, 03 May 2013 03:41:46 -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=+xqf7U53bBgLunxVOSPel9JKa5oVcWR6f29TTnefhpo=; b=O7uX845Mdvh8Q1OejAJwTo5SUhDodUVxSZP3N0cl3wG2g2eZRtUxOfxdZYR2fn4jJa qfIjgxejRRD/635QvwixE3QU4SNVFAfjU9w3gfx9DSGFcty5KBgkK6e/O53yReE4OEqh cNr3GAIw96B2IGagKVrVpd8A3LN3IYJ8X9oIIJbnybxcWwUnKGoV1y+cIYXsiEBot+4m x/4siIX5wWuUbJ9vO0Qhltb3Kq3NmElFuWbhD4cnp9vrwwVtD4OUzkxEtjOCzhCRkeQa YNwhSyZ1aUjB/i2QJnp8OvajfuiNtrsy2EJB5Oe+SN9h5e+CMDTzDVUuuHJ/3ryo0yT0 14lg== X-Received: by 10.66.146.74 with SMTP id ta10mr13979758pab.60.1367577706825; Fri, 03 May 2013 03:41:46 -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.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:41:46 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Anthony Olech Subject: [PATCH 3/9] Input: da9052_tsi - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:36 +0530 Message-Id: <1367576922-31459-3-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: ALoCoQmmDm8R9xPXaNFwzDsQIL5xhVH3DMn+Xmv/V4K3Szt+v0qfuf4aXWLHXN3n6Xj9ZoF1jmIU 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: Anthony Olech --- drivers/input/touchscreen/da9052_tsi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/da9052_tsi.c b/drivers/input/touchscreen/da9052_tsi.c index 8f561e2..ab64d58 100644 --- a/drivers/input/touchscreen/da9052_tsi.c +++ b/drivers/input/touchscreen/da9052_tsi.c @@ -329,8 +329,6 @@ static int da9052_ts_remove(struct platform_device *pdev) input_unregister_device(tsi->dev); kfree(tsi); - platform_set_drvdata(pdev, NULL); - return 0; }