From patchwork Mon May 6 04:23:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522341 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 82DF6DF230 for ; Mon, 6 May 2013 04:37:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752183Ab3EFEhO (ORCPT ); Mon, 6 May 2013 00:37:14 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:34064 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596Ab3EFEhN (ORCPT ); Mon, 6 May 2013 00:37:13 -0400 Received: by mail-pb0-f51.google.com with SMTP id wy7so1777775pbc.10 for ; Sun, 05 May 2013 21:37:13 -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=lxplr++o3g/hTgtMxpR3Mai685VwrMl3iz3refMLnNo=; b=ArHlxNaoJr1QjriDAdg7EjQU058VChRGpW4QthwvIJ537wKudtIbwAlz5LSpgfY1sV fXxT4pUQ1MVk7VplqfApZ2QOmPjK2hAhobm9Ru69TweIB2uF1Umn4XdoTGgQmCPbXRmi l1Oin5vxheEIFGAy8je/lthrLuZaJ0xNcHge8+93etaL5shwectDcrOaawnWVX7fOvSe KcCkxOMdX6SBetTLLwyLFfVvdvgRRERpS0j/GStnETwv/SAvXNdC5xjj4M8IBO3oHYLD Tj/n3HvYwU9QNMVv1/Lx9g/evuPcfYzZwPPzAbYbY3zz94wl5iL+ZQnjfZLw4xTL9yDb aFGg== X-Received: by 10.68.197.34 with SMTP id ir2mr24155638pbc.47.1367815033455; Sun, 05 May 2013 21:37:13 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id at4sm22178298pbc.40.2013.05.05.21.37.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:12 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Phil Blundell Subject: [PATCH 05/20] Input: gpio_keys - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:45 +0530 Message-Id: <1367814240-8959-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> References: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkHwUTNPNjeJknnGBJD3X3QCYbzKq3ZgxIpDgCfQDGQYvY+k/Oed0lZD1cD8eK1nJeFSfPJ 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: Phil Blundell --- drivers/input/keyboard/gpio_keys.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index b29ca65..440ce32 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -767,7 +767,6 @@ static int gpio_keys_probe(struct platform_device *pdev) while (--i >= 0) gpio_remove_key(&ddata->data[i]); - platform_set_drvdata(pdev, NULL); fail1: input_free_device(input); kfree(ddata);