From patchwork Mon May 27 11:37:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2619331 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 030483FD4E for ; Mon, 27 May 2013 11:51:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758054Ab3E0LvO (ORCPT ); Mon, 27 May 2013 07:51:14 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:53566 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758009Ab3E0LvN (ORCPT ); Mon, 27 May 2013 07:51:13 -0400 Received: by mail-pb0-f54.google.com with SMTP id ro12so6718777pbb.13 for ; Mon, 27 May 2013 04:51:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=7oZopmwu/2l9e+Oou+e7GnL+s1LfNBWWWakmELzK4MY=; b=g4Fp5ScKev/sf881WKjz/v6gS4tJ2bMTaUgKth0hPGcbC6Yw7oFTK4wi7ZK5qE+FBz wm73pfK8Qb1rwkXYIJuMAgH1JGTp9i8fd1SHMEgXMVgkvKkI1APIXG8WcMLgQ1Crw4zx ojwjr1M835Jgxo2k2wtntJmjg6WQU+rxTJPsiealR3BfZRBm0yZe7uKLB0BDenWIeihh 6djfgGXc8HicOVsUrCKJ217tgUQkOU32/RjwcjfMI6wlpxG0oy6UspHYpAd0ZKlHxD9X 9FSGuQDRqIhI9tcHgdbmZU7wcJb7zHi+8CFerXghvEz0FyISexhBNdyRRqUqgz1sRKVQ e8xg== X-Received: by 10.66.192.226 with SMTP id hj2mr29575723pac.37.1369655473103; Mon, 27 May 2013 04:51:13 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id zs12sm30398787pab.0.2013.05.27.04.51.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 04:51:12 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 4/4] Input: xilinx_ps2 - Remove redundant platform_set_drvdata() Date: Mon, 27 May 2013 17:07:08 +0530 Message-Id: <1369654628-20714-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369654628-20714-1-git-send-email-sachin.kamat@linaro.org> References: <1369654628-20714-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkAASJ6cdZJTehzPUGWZEvP6AB99e9fxQxI6NCeJlLPywCxEklGOkUdkaeEt8E85JArM6Tw 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 --- drivers/input/serio/xilinx_ps2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/serio/xilinx_ps2.c b/drivers/input/serio/xilinx_ps2.c index 17be859..4b7662a 100644 --- a/drivers/input/serio/xilinx_ps2.c +++ b/drivers/input/serio/xilinx_ps2.c @@ -349,8 +349,6 @@ static int xps2_of_remove(struct platform_device *of_dev) kfree(drvdata); - platform_set_drvdata(of_dev, NULL); - return 0; }