From patchwork Mon May 27 11:37:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2619321 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 AD29CDF215 for ; Mon, 27 May 2013 11:51:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757637Ab3E0LvK (ORCPT ); Mon, 27 May 2013 07:51:10 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:37475 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755980Ab3E0LvJ (ORCPT ); Mon, 27 May 2013 07:51:09 -0400 Received: by mail-pb0-f42.google.com with SMTP id uo1so6700286pbc.29 for ; Mon, 27 May 2013 04:51:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=VjdCQoEotwUzbANF+XHkGQUqTrxF2Ch1KXhePpWJK3A=; b=C7uxCNzGvFjPNMWtSc+0uuHgrlUhQyrYQ9u7V8yrOOzbVev0YXtdtcNveyxzfz2x6m 08QW9tFZ/JPVrZCdqB2WR3hXvh1S3WkepZR0a72hzcf+vQ3r3Gu0z8dmTT79s2aydVab JZe8vBQFHzS0/Wcrddv9nn/EPvUjjJzsn37Pf0PjNO9sUoIRPBUoOS8ObQsdBpaIoXdU vm/954l0CpjcNxr8O8achuk+ugtsn7BPPGtQnLws6vYU9jcjDAmGQlbqRgEcXHnQQfDN 6qu4iz3XpavlFp9fCvIGXRyOfbE2RQCvqgIW1XMA2U1BDNqIMV38raJeHnfTEcNfQDkT t82g== X-Received: by 10.68.180.67 with SMTP id dm3mr28812725pbc.110.1369655468978; Mon, 27 May 2013 04:51:08 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id zs12sm30398787pab.0.2013.05.27.04.51.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 04:51:08 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 3/4] Input: pcspkr - Remove redundant platform_set_drvdata() Date: Mon, 27 May 2013 17:07:07 +0530 Message-Id: <1369654628-20714-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369654628-20714-1-git-send-email-sachin.kamat@linaro.org> References: <1369654628-20714-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlqa0Q/qTK+XMEKoDbPSC04rRY0vER0DKYgtIYhfjEKcEawvEfmtfg4cYJeePchkB+utzOc 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/pcspkr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index 199db78..7288b26 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c @@ -100,7 +100,6 @@ static int pcspkr_remove(struct platform_device *dev) struct input_dev *pcspkr_dev = platform_get_drvdata(dev); input_unregister_device(pcspkr_dev); - platform_set_drvdata(dev, NULL); /* turn off the speaker */ pcspkr_event(NULL, EV_SND, SND_BELL, 0);