From patchwork Fri May 3 10:28:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516711 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 2AEB3DF2E5 for ; Fri, 3 May 2013 10:41:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755901Ab3ECKlk (ORCPT ); Fri, 3 May 2013 06:41:40 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:33034 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKlj (ORCPT ); Fri, 3 May 2013 06:41:39 -0400 Received: by mail-pa0-f52.google.com with SMTP id bg2so863041pad.11 for ; Fri, 03 May 2013 03:41: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=Qis5eIbOikqu+StY4oD+tNc6Iijxm6fuGqvydlRzhGs=; b=TRtG4448eJNfEB6KfAzRU2zL3PV4X6FdAG84c2H2b4nbyxpCLj0siPaHnEl7xVz+20 8BMkvafr/X1/jK79si2A23VFED5p7r+/eSiu7Tlm+gFCBAdKBGcjkvjkd62P3ymLJZ9T aw1AGRC7fyfuJwKbtcQZkg55ZCC842QxGsfSUaN9GIxxWfHOVsWMf4ykjFM/HKii/wq+ 8/Ja5hkf7rdWHppgtba8QxZNJ0cv67LSvokIRIZRVMC/AudAu8Xm7LKma2H7/1bkM+/f Qc5vuAFXuDjDVo1rIj4zUW1nBZngPJaoLDNYAeRny3YQTM5B29ssq8ysu/5l45yN6GJB z68w== X-Received: by 10.68.245.105 with SMTP id xn9mr849859pbc.157.1367577699385; Fri, 03 May 2013 03:41:39 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id hp1sm12366018pac.3.2013.05.03.03.41.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:41:38 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 1/9] Input: 88pm860x-ts- Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:34 +0530 Message-Id: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQl7wRAQKz2ZDNl5AB+aocYY6CaStnFrv5zeDsF0C/50C3ARWQBTW/HuNZ4XDFXZ1khelGRO 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/touchscreen/88pm860x-ts.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/88pm860x-ts.c b/drivers/input/touchscreen/88pm860x-ts.c index c706894..e8d4572 100644 --- a/drivers/input/touchscreen/88pm860x-ts.c +++ b/drivers/input/touchscreen/88pm860x-ts.c @@ -299,7 +299,6 @@ static int pm860x_touch_remove(struct platform_device *pdev) input_unregister_device(touch->idev); free_irq(touch->irq, touch); - platform_set_drvdata(pdev, NULL); kfree(touch); return 0; }