From patchwork Sat May 4 14:51:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520741 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 BEAD8DF25A for ; Sat, 4 May 2013 14:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760342Ab3EDOwU (ORCPT ); Sat, 4 May 2013 10:52:20 -0400 Received: from mail-da0-f50.google.com ([209.85.210.50]:51921 "EHLO mail-da0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760323Ab3EDOwT (ORCPT ); Sat, 4 May 2013 10:52:19 -0400 Received: by mail-da0-f50.google.com with SMTP id i23so1207131dad.9 for ; Sat, 04 May 2013 07:52:19 -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=Fh4WBR9aUHwjnLILvNKSH5u/4r0EL6Kg1FEv7DZbc7Q=; b=oCJfg9UelIrVNvLw08+rFgu5ljhVhZQ2m+rar5vLHFXLb2PgC8J2GRgC3uOPPj0UJa VUvPB0l5auIvpwqhVzv8+BZWsA8/RcL4uUMi8vxqY+w88clcnqni7cEyPr4WvYyJFtjY FE3MMjLAwhcx8goGYAiEWCv4Xop2rbXEumxwi0r4K37tQ942xhBbaXqWkG8PeIeMVj1Z c0QhMlg+EmhTnHntglO+/d+5mSx+Xfd3FBeN0gUTHN7B7K24kAWpCbIHUmUz0bqJWYQM tYDD8THauqF7lww6SVi6P2ABtBC/Fl4KqlR2xZfnqjmkVMcRXuUs9OF4ywzZElE/4lvr 4FcA== X-Received: by 10.66.161.33 with SMTP id xp1mr19662648pab.36.1367679139188; Sat, 04 May 2013 07:52:19 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:18 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 4/9] Input: max8925_onkey - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:53 +0530 Message-Id: <1367679118-2980-4-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: ALoCoQm+Af6VFLbyd6edMWo2W5qOrwoUKjhOtrLXBKN+pDXpixp/dwQto3graJ8Z1RuhH1yBaMZu 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/max8925_onkey.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/max8925_onkey.c b/drivers/input/misc/max8925_onkey.c index f9179b2..eef41cf 100644 --- a/drivers/input/misc/max8925_onkey.c +++ b/drivers/input/misc/max8925_onkey.c @@ -148,8 +148,6 @@ static int max8925_onkey_remove(struct platform_device *pdev) input_unregister_device(info->idev); kfree(info); - platform_set_drvdata(pdev, NULL); - return 0; }