From patchwork Sat May 4 14:51:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520771 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 B55AADF25A for ; Sat, 4 May 2013 14:52:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760416Ab3EDOw2 (ORCPT ); Sat, 4 May 2013 10:52:28 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:58468 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760368Ab3EDOw1 (ORCPT ); Sat, 4 May 2013 10:52:27 -0400 Received: by mail-pd0-f177.google.com with SMTP id g10so1341856pdj.8 for ; Sat, 04 May 2013 07:52:27 -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=M0Z0mIhUwyYLUDdN9SfTuKWdQrTVT2m+/tcsX2zRCYs=; b=cEjCAUvm9tcAEt116XqadsECMIucd3K212vSUX2guAZAyDfKUbmvnzoGpUGIDqN0PJ lNdKCW094itsWybI/0Ca2Ex+DxUkNFgUU4raddt5ysImCZ9rwzIkVhMJXiza9Fjnf3qw N7C+mRtRIsLctXA/sfaUi9Hu48P/XF0JwXsaJw4J27Z0nt25JO9KFHQ2xKwiqAS0vm/W J7PGXHBmlt7GxW4yO95FW4xE+VH0MAeUdHeZ3imD3MHWGcDr1kVx21fCs1mPc9Gzy4b4 LnQ7O33yzRnHBT1cJoTqDwCJdGCKj3XCfhZ9nY4YnLNCBMpsLRZ9d2QYdEh6T7ky3vAm /jOw== X-Received: by 10.68.196.1 with SMTP id ii1mr18609504pbc.200.1367679147268; Sat, 04 May 2013 07:52:27 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.24 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:26 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Trilok Soni Subject: [PATCH 7/9] Input: pmic8xxx-pwrkey - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:56 +0530 Message-Id: <1367679118-2980-7-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: ALoCoQluyY27LNM4Z3JdK2rqqn3DxxkcUEZdSrkhlM9ql9qisbVlmjKfaXUPT1hZmw9d9P6dtOwk 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: Trilok Soni --- drivers/input/misc/pmic8xxx-pwrkey.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c index 4b811be..afd0af9 100644 --- a/drivers/input/misc/pmic8xxx-pwrkey.c +++ b/drivers/input/misc/pmic8xxx-pwrkey.c @@ -177,7 +177,6 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev) free_press_irq: free_irq(key_press_irq, NULL); unreg_input_dev: - platform_set_drvdata(pdev, NULL); input_unregister_device(pwr); pwr = NULL; free_input_dev: @@ -198,7 +197,6 @@ static int pmic8xxx_pwrkey_remove(struct platform_device *pdev) free_irq(key_press_irq, pwrkey); free_irq(key_release_irq, pwrkey); input_unregister_device(pwrkey->pwr); - platform_set_drvdata(pdev, NULL); kfree(pwrkey); return 0;