From patchwork Fri Sep 20 04:44:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2914981 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C8D8D9F1BF for ; Fri, 20 Sep 2013 04:44:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C97420326 for ; Fri, 20 Sep 2013 04:44:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97E7020322 for ; Fri, 20 Sep 2013 04:44:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753636Ab3ITEoo (ORCPT ); Fri, 20 Sep 2013 00:44:44 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:40076 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753652Ab3ITEol (ORCPT ); Fri, 20 Sep 2013 00:44:41 -0400 Received: by mail-pd0-f177.google.com with SMTP id y10so9261985pdj.22 for ; Thu, 19 Sep 2013 21:44:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iqazP848/vUT8NyH0o1mbkP7Ef43XCe6+78xiEaDUss=; b=E7InJWowgas39VHqjFc33oXr8g5u7iYHa+EMEkSC/+rNiVMmFzDEmvgBo0QkIAoM34 UDsfT2kaTqLolw4BaFpDVBGZfwCNM8jIrYix6PjXFkbK1RUN0tFHxRZql92REODRqLJt +QowBUCWFZdnVpcP3Ui5KO7FpY5SRcmwmc0yIaD0z8bdB3wQTzmcMQ1Rv3r+Fo2L1ep9 /VdEkq+o5xPiVFv6uaZfKMGuDwsDyZparXPJ25sO/ObDmf3l2ZdB6xgFytCs5l2sgCKU DLKpkLd0lQJV29FNkFsinU6VSV0IepU+SS0euG0viQxrufb0pu8gM9P0pcIhtkv3efM0 sJVA== X-Gm-Message-State: ALoCoQkrNdr57PMQhgT4N9SomsuuOMONRJsdh+adYeu+yl8hgl+fF0YLkAN8HyEkvSFzKgfXmoM4 X-Received: by 10.68.60.226 with SMTP id k2mr5809369pbr.146.1379652280798; Thu, 19 Sep 2013 21:44:40 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id py4sm12999075pbc.14.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 21:44:39 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, michael.hennerich@analog.com, sachin.kamat@linaro.org, Lauri Leukkunen Subject: [PATCH 4/4] Input: tsc2005 - Remove redundant spi_set_drvdata Date: Fri, 20 Sep 2013 10:14:49 +0530 Message-Id: <1379652289-300-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379652289-300-1-git-send-email-sachin.kamat@linaro.org> References: <1379652289-300-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Cc: Lauri Leukkunen --- drivers/input/touchscreen/tsc2005.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c index 7213e8b..8113533 100644 --- a/drivers/input/touchscreen/tsc2005.c +++ b/drivers/input/touchscreen/tsc2005.c @@ -678,7 +678,6 @@ static int tsc2005_probe(struct spi_device *spi) err_remove_sysfs: sysfs_remove_group(&spi->dev.kobj, &tsc2005_attr_group); err_clear_drvdata: - spi_set_drvdata(spi, NULL); free_irq(spi->irq, ts); err_free_mem: input_free_device(input_dev); @@ -696,7 +695,6 @@ static int tsc2005_remove(struct spi_device *spi) input_unregister_device(ts->idev); kfree(ts); - spi_set_drvdata(spi, NULL); return 0; }