From patchwork Sat May 4 14:51:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520751 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 26BB2DF25A for ; Sat, 4 May 2013 14:52:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760358Ab3EDOwW (ORCPT ); Sat, 4 May 2013 10:52:22 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:46997 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760340Ab3EDOwW (ORCPT ); Sat, 4 May 2013 10:52:22 -0400 Received: by mail-pa0-f41.google.com with SMTP id rl6so1387859pac.28 for ; Sat, 04 May 2013 07:52:21 -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=zOB80xgcQ3lvkp3PywHo0s0fH5lVeUl+D5XIDgiTg2g=; b=m9QqOjEaQKPTkfWuLfIeK8vW/RA+m1ISg6DBg2OmVaMwF4iphd2YW1xpPGy7ZOf8nY bEhqmuPzkJA1S9dnoQG32SRa+eVmyCI5U4Qfe5RHqnze99qPJ0zPs4cM4GHPbOXg5WKE 3PLkg+YnwaINLkFcxcAJGZxA+Vj2Nu+U/z/ERFgulRg10NVY7sOVzS9v/7gBZgun2Rdl xu0oHyu6wguA4XwtAqzHUKzzG5OKOVK7SLoh8TJrOhG3VWOduu4thYGKKRrAlbeWttFu pzMfVS697Y5omxOXrQhYEMctanIrb5GiliKrVI12zacznuAn3MWjfApetw9E6YQgjj2O PBGw== X-Received: by 10.68.99.163 with SMTP id er3mr18810043pbb.36.1367679141671; Sat, 04 May 2013 07:52:21 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:21 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 5/9] Input: mc13783-pwrbutton - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:54 +0530 Message-Id: <1367679118-2980-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1367679118-2980-1-git-send-email-sachin.kamat@linaro.org> References: <1367679118-2980-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmvy7nXDa3XbZNgc7xLuuWj6tLQiMMDJUlxBk1P5JSH4PQ4Qn7KxnZr7NSJIcnR9hINA0gB 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/misc/mc13783-pwrbutton.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/input/misc/mc13783-pwrbutton.c b/drivers/input/misc/mc13783-pwrbutton.c index 0906ca5..d0277a7 100644 --- a/drivers/input/misc/mc13783-pwrbutton.c +++ b/drivers/input/misc/mc13783-pwrbutton.c @@ -250,7 +250,6 @@ static int mc13783_pwrbutton_remove(struct platform_device *pdev) input_unregister_device(priv->pwr); kfree(priv); - platform_set_drvdata(pdev, NULL); return 0; }