From patchwork Mon May 6 04:24:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522501 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E933D3FC5A for ; Mon, 6 May 2013 04:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750840Ab3EFEhx (ORCPT ); Mon, 6 May 2013 00:37:53 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:58609 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720Ab3EFEhw (ORCPT ); Mon, 6 May 2013 00:37:52 -0400 Received: by mail-pa0-f52.google.com with SMTP id bg2so1818221pad.11 for ; Sun, 05 May 2013 21:37:52 -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=fxiZf36FQ3BZyWu1mf5wVSsg5VbPsx1iTFsu7nG0GQ4=; b=RvMM2pxnJ1PJoui+COjbP04W14MFipxe4YUa9z32qNEEdTGfIIBplSjEn4Tx3SIoY5 Aulh0DA0HSUKbD8FlDzw7lB0CPE7Ps0dGCPpH42HArtC15If5D/CXDz63HJnnu3VCLwI kJR2QYvoah60QHBANndZPV0PyAqvjrOq/Ub3G0pHpt7sfnH/bGHZS3Ga+jbAT674s35U TuMDO5pZF2CazwwKNhFaL3k+ImCx7hX4qfGXT9CZphvpDuxZvZQ1o9PMgm6WTkQAdRV6 3so1vKGpBPjoR+ZGLGTbyIcJI0J8KGPztIvwjHeMKhViMM9bBi+zGvO9IjLBlfjnW6u2 ABBg== X-Received: by 10.69.14.100 with SMTP id ff4mr24731658pbd.83.1367815072431; Sun, 05 May 2013 21:37:52 -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.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:51 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Wan ZongShun Subject: [PATCH 20/20] Input: w90p910_keypad - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:54:00 +0530 Message-Id: <1367814240-8959-20-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: ALoCoQkQJP1x78FH5pspdFgmSbw8jWWgwoNkmuDg0KASAIg4xgVnjqh7Tc4zUGJIdt8iXJaq9Q+d 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: Wan ZongShun --- drivers/input/keyboard/w90p910_keypad.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/w90p910_keypad.c b/drivers/input/keyboard/w90p910_keypad.c index ee163be..72e6a56 100644 --- a/drivers/input/keyboard/w90p910_keypad.c +++ b/drivers/input/keyboard/w90p910_keypad.c @@ -249,7 +249,6 @@ static int w90p910_keypad_remove(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(res->start, resource_size(res)); - platform_set_drvdata(pdev, NULL); kfree(keypad); return 0;