From patchwork Fri May 3 10:28:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516721 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 7621BDF2E5 for ; Fri, 3 May 2013 10:41:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760563Ab3ECKlo (ORCPT ); Fri, 3 May 2013 06:41:44 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:44003 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKlo (ORCPT ); Fri, 3 May 2013 06:41:44 -0400 Received: by mail-pb0-f51.google.com with SMTP id wy7so833094pbc.24 for ; Fri, 03 May 2013 03:41:44 -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=RisepZRgDAM/3v11zQzCvOcUixwlYzuQinCkIRDjpho=; b=CmMnFini7UcmbkMquCgCA/rwg9uejOK73iZs2pfPObvkAuKFUbvHG8KzZ0a7To3nMR rW8cds4qlP2XrZAxVRIXnck1ZyasguoItL/gBlt1AyO1y4TPIQuGrvs3hpb6P96TOIy0 Jb+NxVLYyi+9FOjQSw+oUkGEg3Ebo6YcshWkKLFui9DvK2h1z4cGzkL9F2DvwPpfHfDQ wo6VjXl/8uxs4fXzmuvZcls9F7UcamMYn98nIAQR99HgSRkVO7EBEzZdjJSbQbh8FXe6 p9k/z1JqIZqtPTDXnkGkG2POWGYvuKglgqnBpH6Mqd+xtgxbQ4RuUq8YnzEa6eH6FcnR RcFQ== X-Received: by 10.68.213.101 with SMTP id nr5mr13151523pbc.22.1367577703916; Fri, 03 May 2013 03:41:43 -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.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:41:43 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Hans-Christian Egtvedt , Mark Brown Subject: [PATCH 2/9] Input: atmel-wm97xx - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:35 +0530 Message-Id: <1367576922-31459-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> References: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkYvun+xZsXG2GWsmLRQPEr1IL2b2zwo6zlZcAsD7DT4c/PpWDcwInVJ+TpohfX/+bFQhfc 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 Cc: Mark Brown Acked-by: Hans-Christian Egtvedt --- drivers/input/touchscreen/atmel-wm97xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel-wm97xx.c b/drivers/input/touchscreen/atmel-wm97xx.c index 2c1e46b..268a35e 100644 --- a/drivers/input/touchscreen/atmel-wm97xx.c +++ b/drivers/input/touchscreen/atmel-wm97xx.c @@ -372,7 +372,6 @@ static int __init atmel_wm97xx_probe(struct platform_device *pdev) err_irq: free_irq(atmel_wm97xx->ac97c_irq, atmel_wm97xx); err: - platform_set_drvdata(pdev, NULL); kfree(atmel_wm97xx); return ret; } @@ -386,7 +385,6 @@ static int __exit atmel_wm97xx_remove(struct platform_device *pdev) free_irq(atmel_wm97xx->ac97c_irq, atmel_wm97xx); del_timer_sync(&atmel_wm97xx->pen_timer); wm97xx_unregister_mach_ops(wm); - platform_set_drvdata(pdev, NULL); kfree(atmel_wm97xx); return 0;