From patchwork Mon May 6 04:23:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522351 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 4BE71DF230 for ; Mon, 6 May 2013 04:37:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752207Ab3EFEhR (ORCPT ); Mon, 6 May 2013 00:37:17 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:54602 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596Ab3EFEhQ (ORCPT ); Mon, 6 May 2013 00:37:16 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb10so1833590pad.37 for ; Sun, 05 May 2013 21:37:16 -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=vbLRtXBD10xA/QPjYu+foMti9HO1jk3T2mJoN+UOu28=; b=OQWlFdhJ4tZNkCohIsC1VMITO7SfU3UPV6y1V6kaS9foSrxokIzPX8gP93tFXYuIiB 51J0Wfcr1afsb/xSEv4xNqI3sFFWmfhNVgXmEKCNoq1wIT7rNeOKyxAQ6qzZ9yrP9iZT 6KzlvhCuksmv8t1YVUd2eR60ly8RfJadZH6ezeKcodIzGxDf/q1NHZcBopUBkVLjv+x4 y0DQ6XnkclJJ1Td1TL4iZmWHXmPLBfv5BNqBWQixcvj4deODoIYLMC2RfztSL9odtUsS myblUfrVebhcXWB0Lgr3/4C8NEjMwypMKCxUur26fl2KuI4D/5yV47paHtNxyRWr7j3V d20Q== X-Received: by 10.68.27.9 with SMTP id p9mr23711485pbg.139.1367815036038; Sun, 05 May 2013 21:37:16 -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.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:15 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Gabor Juhos Subject: [PATCH 06/20] Input: gpio_keys_polled - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:46 +0530 Message-Id: <1367814240-8959-6-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: ALoCoQnyLOAHlsY2DHH198AmL5ZCB4vBs1xUq37zg+pqgU0vdQqlTtawRowPC2dn0pB6G0fFH4Yv 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: Gabor Juhos --- drivers/input/keyboard/gpio_keys_polled.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c index 2114716..cd5ed9e 100644 --- a/drivers/input/keyboard/gpio_keys_polled.c +++ b/drivers/input/keyboard/gpio_keys_polled.c @@ -324,7 +324,6 @@ err_free_gpio: err_free_bdev: kfree(bdev); - platform_set_drvdata(pdev, NULL); err_free_pdata: /* If we have no platform_data, we allocated pdata dynamically. */ @@ -355,7 +354,6 @@ static int gpio_keys_polled_remove(struct platform_device *pdev) kfree(pdata); kfree(bdev); - platform_set_drvdata(pdev, NULL); return 0; }