From patchwork Fri May 3 10:28: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: 2516751 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 6AD70DF2E5 for ; Fri, 3 May 2013 10:42:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760871Ab3ECKmA (ORCPT ); Fri, 3 May 2013 06:42:00 -0400 Received: from mail-pb0-f48.google.com ([209.85.160.48]:56706 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKmA (ORCPT ); Fri, 3 May 2013 06:42:00 -0400 Received: by mail-pb0-f48.google.com with SMTP id ma3so838081pbc.35 for ; Fri, 03 May 2013 03:42:00 -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=Ow2ubTZFPtkfOj1f4t7r0BB+/el0Xd9brUSgydDEwj0=; b=W9TKeIh8H9CvVl/4mMAGmdEJ/U/Vs7U+IPgg+zPBvOe9GJVB8P83u1+9VO8xtH9iSA XLMUV12UWfXsNg6T2SzY7KgErg6VxMNbYAwxB9fX9ympm2arZm4NORRkEt6KRzL47NjY GSXVVWnuZaTgY7nkm9g1wWV1dX+XWzsgpwbWEnJhiitSIld40uEBpvocmm+L6uZ4HPyd xnXcM4f5ENEuqSqY3lMxYCDLS9sENieO7RLoGuZMKaUjjSAEdk0NiioPgmOQ4QOJx5KE EK315vuix5X+jOP1v3bqX9H9CLFmQJ8KZHBzW2fS0o7D5mzEyt9kJqYWVbtMqihcSy7b Jo4w== X-Received: by 10.66.138.109 with SMTP id qp13mr13951322pab.127.1367577719872; Fri, 03 May 2013 03:41:59 -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.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:41:59 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Kristoffer Ericson Subject: [PATCH 5/9] Input: jornada720_ts - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:38 +0530 Message-Id: <1367576922-31459-5-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: ALoCoQnemElWmS5vQT0qPNUilzWxyscqRXIhVYMyeOm3GmmZut1YRuc24f3QSkGfn65et4RzMAKC 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: Kristoffer Ericson --- drivers/input/touchscreen/jornada720_ts.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/jornada720_ts.c b/drivers/input/touchscreen/jornada720_ts.c index 282d7c7..e463a79 100644 --- a/drivers/input/touchscreen/jornada720_ts.c +++ b/drivers/input/touchscreen/jornada720_ts.c @@ -145,7 +145,6 @@ static int jornada720_ts_probe(struct platform_device *pdev) fail2: free_irq(IRQ_GPIO9, pdev); fail1: - platform_set_drvdata(pdev, NULL); input_free_device(input_dev); kfree(jornada_ts); return error; @@ -156,7 +155,6 @@ static int jornada720_ts_remove(struct platform_device *pdev) struct jornada_ts *jornada_ts = platform_get_drvdata(pdev); free_irq(IRQ_GPIO9, pdev); - platform_set_drvdata(pdev, NULL); input_unregister_device(jornada_ts->dev); kfree(jornada_ts);