From patchwork Mon May 6 04:23:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522371 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 75C13DF230 for ; Mon, 6 May 2013 04:37:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254Ab3EFEhW (ORCPT ); Mon, 6 May 2013 00:37:22 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:60550 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752220Ab3EFEhV (ORCPT ); Mon, 6 May 2013 00:37:21 -0400 Received: by mail-pd0-f173.google.com with SMTP id v10so1803681pde.32 for ; Sun, 05 May 2013 21:37:21 -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=vP+uss5Mupz/uFuBOeGp0KyU2ZfjawWTGF3dbMZg8t0=; b=VE0wNTPjaNB+ylIm+nPzNm4CMw0p1LQ6lpQzgRQ2Bvi2QpZ+Cxk7TZYG70gfwO/cLN NfqxCQh+9ziZkLacaTbCHCU5sleUyLNnwRptvJy/XknJ+zgSEcwps2FHBJXyClUAStJg lDCQGbU0olOon0fNzdvnZbO6YBsmp2PyvwmEK43Wjz2Dxh+keK7WMyYTt+V6/cbZwUIx e6r91w7/UDyO9PwieT8TgM7JbzylJjARbc/6yIzL3OVzXV1Gm7L7CUl3VfhgNoEyn/Wa 8nS9R53JjzOWnxCvSUvShuBtnn+CzKfJGAt+VrnoGCiDtvBsa+4q8Ei6d+DGlev39qBs 8bIQ== X-Received: by 10.68.60.130 with SMTP id h2mr23642122pbr.208.1367815041395; Sun, 05 May 2013 21:37:21 -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.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:20 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Kristoffer Ericson Subject: [PATCH 08/20] Input: jornada720_kbd - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:48 +0530 Message-Id: <1367814240-8959-8-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: ALoCoQmbwsKRA/sv6OfxNaiM7/GM7eqTusxc1EFu6hGu89wQcWSmEwmyiM/R0iRRPWgxseBx6x4K 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/jornada720_kbd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/keyboard/jornada720_kbd.c b/drivers/input/keyboard/jornada720_kbd.c index 5ceef63..b0ad457 100644 --- a/drivers/input/keyboard/jornada720_kbd.c +++ b/drivers/input/keyboard/jornada720_kbd.c @@ -146,7 +146,6 @@ static int jornada720_kbd_probe(struct platform_device *pdev) fail2: /* IRQ, DEVICE, MEMORY */ free_irq(IRQ_GPIO0, pdev); fail1: /* DEVICE, MEMORY */ - platform_set_drvdata(pdev, NULL); input_free_device(input_dev); kfree(jornadakbd); return err; @@ -157,7 +156,6 @@ static int jornada720_kbd_remove(struct platform_device *pdev) struct jornadakbd *jornadakbd = platform_get_drvdata(pdev); free_irq(IRQ_GPIO0, pdev); - platform_set_drvdata(pdev, NULL); input_unregister_device(jornadakbd->input); kfree(jornadakbd);