From patchwork Sat May 4 14:51:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520781 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 57FA8DF25A for ; Sat, 4 May 2013 14:52:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760423Ab3EDOwa (ORCPT ); Sat, 4 May 2013 10:52:30 -0400 Received: from mail-da0-f50.google.com ([209.85.210.50]:55805 "EHLO mail-da0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760393Ab3EDOwa (ORCPT ); Sat, 4 May 2013 10:52:30 -0400 Received: by mail-da0-f50.google.com with SMTP id i23so1193381dad.23 for ; Sat, 04 May 2013 07:52:30 -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=E6WjrVNhOjik3U3yA+aMVWRlR4efGgY5tBDKKu1p5Gw=; b=psMxhxg88F9v0Td8dEVUQZ8eIVeHy1y9l38unCOVDtgtoeMAKyy/jJBUK7lrPQhWa3 fzTwvlAorehpW21KHbnTPsEimwjFarPp8UqgksW/mgPIxqhh/QznOac+4HFCSf+41IXC YthdL4AHUbD1mzY7sHppPso1ss9t2CWuTGbxVMqrf3+j9lxmZo5srmPrN/81tIlEA8Qu TkhbSA9yFuiWtplVK/emKtwm6wlfzT6aGRtShSA7yjOAp31RXyP08+lfJ9A9ETifuBva p8NVVzP+AvtVaQ3+d4SEjED/lz10kbZQohnZLcVptVFtlDvXfGHawzBg8VBuC3Id1Vv+ cu2w== X-Received: by 10.68.189.67 with SMTP id gg3mr18483837pbc.141.1367679149943; Sat, 04 May 2013 07:52:29 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:29 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Lars-Peter Clausen Subject: [PATCH 8/9] Input: pwm-beeper - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:57 +0530 Message-Id: <1367679118-2980-8-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: ALoCoQnGmSO6B79vfvFB6fXPrUXApOQLrxDYP4jCbv/VvuNf40WhkU2fj3RqvZZciFTgLuThS6mG 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: Lars-Peter Clausen --- drivers/input/misc/pwm-beeper.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index 0808868..a37f0c9 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c @@ -133,7 +133,6 @@ static int pwm_beeper_remove(struct platform_device *pdev) { struct pwm_beeper *beeper = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); input_unregister_device(beeper->input); pwm_disable(beeper->pwm);