From patchwork Sat May 4 14:51:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520711 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 63EF6DF25A for ; Sat, 4 May 2013 14:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760144Ab3EDOwM (ORCPT ); Sat, 4 May 2013 10:52:12 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:33485 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760081Ab3EDOwL (ORCPT ); Sat, 4 May 2013 10:52:11 -0400 Received: by mail-pd0-f175.google.com with SMTP id y14so1351882pdi.6 for ; Sat, 04 May 2013 07:52:11 -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 :x-gm-message-state; bh=OcYAKt3b5dVSSQPSEKxFCtudWEbz0/6b9nSA0kFrOuI=; b=lPeIM3JqEsf/PLElHSQgTluhC5Lid2P4micgmXtilPGWYFR6aYJIhN2dEiws0cIWyc g9wdh6hXznrxH2dkAljv2dmJOIYSlJJaiJehxmM3Pm0CWEwNY3fW9l3BS1aRCtqf6012 Sy8k5If5kgiLcoNu6bqF7gXJVclmkoQclNxXCh2SFDJ6wC+uquWTa3uAKTZ0uFhD66iA 1L9tdZQ/oHI65MfD/c56Z42HdfVbsh1j/9ohm7UNHme/ta7tnozIxD3/IA9YVE/FNHCh XbHIxxG4/kLTNb2gkKafh9i7fOQ6t47dgJRiUKv1YLBFWunO0Y/CHQIV75pte0z63Whq 3tag== X-Received: by 10.68.130.231 with SMTP id oh7mr960720pbb.158.1367679131151; Sat, 04 May 2013 07:52:11 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:10 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Sundar Iyer Subject: [PATCH 1/9] Input: ab8500-ponkey - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:50 +0530 Message-Id: <1367679118-2980-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmInCsI5bv4ddv3sm6QVkajPpRVNW8RWvSX30WduF5M1Sv2BvJhdDFuA31t2mKqnWCnaFB9 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: Sundar Iyer --- This series compile tested and based on linux-next (20130503). --- drivers/input/misc/ab8500-ponkey.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 2f090b4..f2fbdd8 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -127,8 +127,6 @@ static int ab8500_ponkey_remove(struct platform_device *pdev) input_unregister_device(ponkey->idev); kfree(ponkey); - platform_set_drvdata(pdev, NULL); - return 0; }