From patchwork Fri May 3 10:36:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516821 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 94BEE3FCA5 for ; Fri, 3 May 2013 10:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762992Ab3ECKtn (ORCPT ); Fri, 3 May 2013 06:49:43 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:48856 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762986Ab3ECKtn (ORCPT ); Fri, 3 May 2013 06:49:43 -0400 Received: by mail-pd0-f172.google.com with SMTP id 5so861178pdd.17 for ; Fri, 03 May 2013 03:49:43 -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=duA6fT26DMswQPHGcZbE22Y4uY6RmR/yz1VeM8hz9ks=; b=W20+7x4H170VfuLwC8io7zMCTcgRJoVlCQ8Sxtnc7/6PzrF1D+4kZXE6U5qi8ihXgS 7KTuetQROcbNedxXbwT5YixI/l92X+TcPMvce0X67klWHC3+vntPOlwNGpHIxf/ZPNYn bZ8+F1FmwSyKbwYDaENP+tMF5C69Dc80YD0nAJbWMTaRrREuJba2A8ma0f1t1tVDlflc syn102KdptMzaR9aDjp01JcRiKKZGlTB6G915BBFIBxPV+29ynIbiEIQrDsMMrn7Fs3o Fv+lA5zkH12wtuoqYW1jfzsZULBkl5gE5xQ1l63/eRxDCaq+9SZQbr/Xd2QfmAhWP4Xj i2Eg== X-Received: by 10.66.102.70 with SMTP id fm6mr13697905pab.164.1367578182999; Fri, 03 May 2013 03:49:42 -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.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:49:42 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Hans-Christian Egtvedt Subject: [PATCH 2/3] Input: at32psif - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 16:06:39 +0530 Message-Id: <1367577400-9527-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367577400-9527-1-git-send-email-sachin.kamat@linaro.org> References: <1367577400-9527-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkKjJ+KPkUk2iXagmXAIROkOHD43RFZbPzojFAvb29RK+ZaY5uEY8EQU1GutFMlxaREriu6 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: Hans-Christian Egtvedt Acked-by: Hans-Christian Egtvedt --- drivers/input/serio/at32psif.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c index 190ce35..3290b28 100644 --- a/drivers/input/serio/at32psif.c +++ b/drivers/input/serio/at32psif.c @@ -314,8 +314,6 @@ static int __exit psif_remove(struct platform_device *pdev) clk_put(psif->pclk); kfree(psif); - platform_set_drvdata(pdev, NULL); - return 0; }