From patchwork Mon May 6 04:23:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522361 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 C5012DF230 for ; Mon, 6 May 2013 04:37:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752210Ab3EFEhU (ORCPT ); Mon, 6 May 2013 00:37:20 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:35964 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973Ab3EFEhT (ORCPT ); Mon, 6 May 2013 00:37:19 -0400 Received: by mail-pb0-f44.google.com with SMTP id wz17so1796276pbc.3 for ; Sun, 05 May 2013 21:37:18 -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=oe0KO21/AF6dZaIr7S18C3AoxqmMs1f3sTBFq/KMo3o=; b=c3W5/78JavZvuJoI2MwwsLJXJJvfON7yNbPoiDhQntyGME02807U/v14ALAUPY28Fn pz8db0KxkCfrMgB6LOi9pk4BvjH3BhwhfkKFJTtbANNRzsp70fiHaJSZGzVgxw5HLJbK BQ/0lB0i39EBg1fKykBD7en4QNYk9WMr9ZgCTEXhxogpdIZGdM5i8Ien7TpbuclfuciM 6Hsh6eNLm1NdJ03/eL5VAa1wbj9vocycb3KAzgGoDCjDy80T0pAbJYjbBvJZniCkvfjB D1J2gVj0lkls/nL+lShwGukZ2mKWGQpv940sdSpP+Dcz9lURMe6WF09AlkNGRo83kwvl QS3A== X-Received: by 10.66.253.132 with SMTP id aa4mr24665151pad.131.1367815038757; Sun, 05 May 2013 21:37:18 -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.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:18 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Kristoffer Ericson Subject: [PATCH 07/20] Input: jornada680_kbd - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:47 +0530 Message-Id: <1367814240-8959-7-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: ALoCoQmyIi2/fetAStxfg9wRPvgQGYKQ5Da49Y6LZwik7ulVawVkvPkSozm7zD0sny05mwhWhwhB 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: Kristoffer Ericson --- drivers/input/keyboard/jornada680_kbd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/keyboard/jornada680_kbd.c b/drivers/input/keyboard/jornada680_kbd.c index 74e75a6..a2a034c 100644 --- a/drivers/input/keyboard/jornada680_kbd.c +++ b/drivers/input/keyboard/jornada680_kbd.c @@ -233,7 +233,6 @@ static int jornada680kbd_probe(struct platform_device *pdev) failed: printk(KERN_ERR "Jornadakbd: failed to register driver, error: %d\n", error); - platform_set_drvdata(pdev, NULL); input_free_polled_device(poll_dev); kfree(jornadakbd); return error; @@ -244,7 +243,6 @@ static int jornada680kbd_remove(struct platform_device *pdev) { struct jornadakbd *jornadakbd = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); input_unregister_polled_device(jornadakbd->poll_dev); input_free_polled_device(jornadakbd->poll_dev); kfree(jornadakbd);