From patchwork Fri Sep 6 18:08:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2854791 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F31129F2D6 for ; Fri, 6 Sep 2013 18:44:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C48012037B for ; Fri, 6 Sep 2013 18:08:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E64E320371 for ; Fri, 6 Sep 2013 18:08:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751078Ab3IFSIb (ORCPT ); Fri, 6 Sep 2013 14:08:31 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:55227 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940Ab3IFSIa (ORCPT ); Fri, 6 Sep 2013 14:08:30 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so3566937pdi.19 for ; Fri, 06 Sep 2013 11:08:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qB+coPHDCPJQnn6e6sfZmTmfYduD/69Luc9yB+BCvlE=; b=h6s7J9bHs0pGo4JFGQalLYudvv+04pnVGgqZ+VY7OHyuPTRRi52o0RMn2IAMCFJNQK cnlOLvp3gpniZ2ZxGYMygI85Xv3ZTPkSRiOsTsmwsYbefotUE6wMTc0SOCwMF2q+Pnjl RHZ7uodnC7Lz3+B/y1cz5kTnmIpKbp/Hu1fM0FyH/RBECPnCeDyVe6gplUptUyp33LXU Bbq155r9o85Ud8J+sgIYvRsyYaWwQQzrnsOTb2/60OxY6da+Z9RmYEaUI/j/61iMkDLg kFAFtHdscwrEQscZ6aRW+rG5hyI3Q0O3xhKpl5Y77AwefOYkXK5hyUyzr7fvo+pSFnUv gdvg== X-Gm-Message-State: ALoCoQmNY7dRHaz07H0jqhgllSWHHYu/NjJTjIV2va68FhLGNiEsTAl2U84PqXIGlk4M0Ui8UAWp X-Received: by 10.68.253.67 with SMTP id zy3mr4380116pbc.137.1378490909792; Fri, 06 Sep 2013 11:08:29 -0700 (PDT) Received: from localhost.localdomain ([122.172.177.173]) by mx.google.com with ESMTPSA id va1sm2266727pbc.31.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Sep 2013 11:08:29 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 4/4] Input: rb532_button - Remove redundant dev_set_drvdata Date: Fri, 6 Sep 2013 23:38:08 +0530 Message-Id: <1378490888-5083-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1378490888-5083-1-git-send-email-sachin.kamat@linaro.org> References: <1378490888-5083-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Driver core sets the data to NULL upon release or probe failure. Hence explicit setting is not necessary. Signed-off-by: Sachin Kamat --- drivers/input/misc/rb532_button.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/input/misc/rb532_button.c b/drivers/input/misc/rb532_button.c index fb4f8ac..83fff38 100644 --- a/drivers/input/misc/rb532_button.c +++ b/drivers/input/misc/rb532_button.c @@ -87,7 +87,6 @@ static int rb532_button_remove(struct platform_device *pdev) input_unregister_polled_device(poll_dev); input_free_polled_device(poll_dev); - dev_set_drvdata(&pdev->dev, NULL); return 0; }