From patchwork Fri May 3 10:36:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516811 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 720F93FCA5 for ; Fri, 3 May 2013 10:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754943Ab3ECKtk (ORCPT ); Fri, 3 May 2013 06:49:40 -0400 Received: from mail-pb0-f52.google.com ([209.85.160.52]:45138 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754177Ab3ECKtk (ORCPT ); Fri, 3 May 2013 06:49:40 -0400 Received: by mail-pb0-f52.google.com with SMTP id xa7so840294pbc.25 for ; Fri, 03 May 2013 03:49:39 -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 :x-gm-message-state; bh=327rqDwl1Nek8rZbuM5neZfRJx2UnrGODZVzfpyMO+8=; b=irwJO/WWe42R6N6H0nsCBd1jROqkJzsCtFCblFrnGqW/IHertmy78DLIaeNE29V6Zb tNFgBf88S958eucFrAi+8hKSypPlig+oailh5mBKnzUpXPn2/GR7Wct0dM1Hg8v5jYH7 6ra9nf8ZEcqe7NnIYmKC0fMTGa2NWTVZQ8RCqfZEwhQ6v+cHgmy4XCX/7IFUJvz+IIIY aIeT4DZ56+ksjcUUlIDtuDp+f/VfGSG0LxETZswj2zczBcKXBSK34Y9tnNNPdE4QYxHJ gAB90d7JUqQwXULeTmkPtdvLuTqL6RyAEAzBmBuTrBhdjPoRUnIX/3LjThD8R4GVuraT J5iQ== X-Received: by 10.66.19.234 with SMTP id i10mr14079918pae.152.1367578179742; Fri, 03 May 2013 03:49:39 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id zy5sm11188835pbb.43.2013.05.03.03.49.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:49:39 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Thomas Chou Subject: [PATCH 1/3] Input: altera_ps2 - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 16:06:38 +0530 Message-Id: <1367577400-9527-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnaN23N8gEz/QwH+5vn37/Kg3tZ+ET2nNugeLvHuzvm9ezd7QICZa6Rd1S2zivwLHqK2whk 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: Thomas Chou Acked-by: Thomas Chou --- drivers/input/serio/altera_ps2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/serio/altera_ps2.c b/drivers/input/serio/altera_ps2.c index 479ce5f..a0a2657 100644 --- a/drivers/input/serio/altera_ps2.c +++ b/drivers/input/serio/altera_ps2.c @@ -163,7 +163,6 @@ static int altera_ps2_remove(struct platform_device *pdev) { struct ps2if *ps2if = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); serio_unregister_port(ps2if->io); free_irq(ps2if->irq, ps2if); iounmap(ps2if->base);