From patchwork Mon May 27 11:37:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2619311 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 C14CDDF215 for ; Mon, 27 May 2013 11:51:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757380Ab3E0LvG (ORCPT ); Mon, 27 May 2013 07:51:06 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:56900 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755980Ab3E0LvG (ORCPT ); Mon, 27 May 2013 07:51:06 -0400 Received: by mail-pd0-f181.google.com with SMTP id bv13so4646042pdb.40 for ; Mon, 27 May 2013 04:51:05 -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=qVHhcqagM1IkzChy7koum7bAVErauZS7h/sHUktcbXg=; b=JmIfFkaX4Tj6mFCpTovmVvi9xI8GasRTMmSJ5HMH2yPsKpTH1Xf75sSJCZ1+RFgZug Qcl09nNNlLO+pXADBAaxQjaDwnjAXLVrITfCfY26bNXtE0y6Kj4hDG4Q9fZW8ScLNrxC XkE7WeGC0iRNVVJLSMQV8Lg12UrnTA9LQgldS0Ssw4jX0MpR+5PClBbz38/V4C4+Rt72 AlfNMh/RQdbO/37M3lXjcLUN+098r1JzwryhwGKnlkfB51DTOB4+twYHr6maGdI365Rw hB7l2mjNtU87yv7H2FwY1povhJp7+iRV/K3NO4Q3J87iw6V+qXl9u4Urbu/DrERd9kcG cnSg== X-Received: by 10.68.232.42 with SMTP id tl10mr29019084pbc.72.1369655465718; Mon, 27 May 2013 04:51:05 -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.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 04:51:05 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 2/4] Input: m68kspkr - Remove redundant platform_set_drvdata() Date: Mon, 27 May 2013 17:07:06 +0530 Message-Id: <1369654628-20714-2-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: ALoCoQl07LCOhxLvW8/cQ79Ee7KosMFEAkypgGgmWRh+ewoEKlFBvupBwCTXBcjs55gld1HeOwmH 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/m68kspkr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/m68kspkr.c b/drivers/input/misc/m68kspkr.c index b40ee4b..def21dc 100644 --- a/drivers/input/misc/m68kspkr.c +++ b/drivers/input/misc/m68kspkr.c @@ -85,7 +85,6 @@ static int m68kspkr_remove(struct platform_device *dev) struct input_dev *input_dev = platform_get_drvdata(dev); input_unregister_device(input_dev); - platform_set_drvdata(dev, NULL); /* turn off the speaker */ m68kspkr_event(NULL, EV_SND, SND_BELL, 0);