From patchwork Mon May 6 04:23:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522451 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 4FAEF3FC5A for ; Mon, 6 May 2013 04:37:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752592Ab3EFEhl (ORCPT ); Mon, 6 May 2013 00:37:41 -0400 Received: from mail-da0-f50.google.com ([209.85.210.50]:36481 "EHLO mail-da0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572Ab3EFEhk (ORCPT ); Mon, 6 May 2013 00:37:40 -0400 Received: by mail-da0-f50.google.com with SMTP id i23so1651307dad.37 for ; Sun, 05 May 2013 21:37:39 -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=bgwzURfkU7J7DpwLuSZBZGJU5hCYSXkJuaOO+E77f9o=; b=owtBvqpyqmF9gAqfzn9r/pd1WKV0oScH1w+8Hrj7VrLCBk+ZD7I53vShGG+Mu91H/C ArmpffKdZQfSg9rX6oM0v5naXxVUQWIz04rEBh/3H1w7kK276oJUByWVetlkTL8LzKQ6 s+J798W+oQk/leytdozgtjAcpm2782OlGL13/iPtemjfO7anDGI64Jjjwd/PAn3m9R+O bYeJB43NbEJCb78aEvxnzQ0JkXs2mGXCahVGmKeh5Sqo5AJkIS+13GpaQi0jiefAEqpo 7a32VrnmThtAUUfLDDBtjpyFVVAsNVIhTaFiSe11RsuEPztwVy19NrS2kkC9ixhW+bHx YSjg== X-Received: by 10.68.8.193 with SMTP id t1mr24154110pba.140.1367815059645; Sun, 05 May 2013 21:37:39 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id at4sm22178298pbc.40.2013.05.05.21.37.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:39 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Joonyoung Shim Subject: [PATCH 15/20] Input: samsung-keypad - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:55 +0530 Message-Id: <1367814240-8959-15-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> References: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQla/MCOnP/4RR9lB5CMMjFZznmhBDME0ha1lKgx6mnvVYvjyj0ZPCkc0n0HtGoqnRUH5Nut 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: Joonyoung Shim --- drivers/input/keyboard/samsung-keypad.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index 22e357b..7b938b4 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c @@ -487,7 +487,6 @@ static int samsung_keypad_probe(struct platform_device *pdev) err_disable_runtime_pm: pm_runtime_disable(&pdev->dev); device_init_wakeup(&pdev->dev, 0); - platform_set_drvdata(pdev, NULL); err_unprepare_clk: clk_unprepare(keypad->clk); return error; @@ -499,7 +498,6 @@ static int samsung_keypad_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); device_init_wakeup(&pdev->dev, 0); - platform_set_drvdata(pdev, NULL); input_unregister_device(keypad->input_dev);