From patchwork Fri Sep 20 04:42:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2914961 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 F28D09F1BF for ; Fri, 20 Sep 2013 04:44:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3577A20326 for ; Fri, 20 Sep 2013 04:44:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 599C520322 for ; Fri, 20 Sep 2013 04:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752756Ab3ITEoG (ORCPT ); Fri, 20 Sep 2013 00:44:06 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:63095 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752729Ab3ITEoG (ORCPT ); Fri, 20 Sep 2013 00:44:06 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc17so9228710pbc.32 for ; Thu, 19 Sep 2013 21:44:04 -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=xAqB1er+xCp+5GQNbDQ70J9j5/RUdt0+5FZ7Lsa7t3o=; b=IDem4u6j2fM4sWFKZlrl4m7eV3fGRi2tw//CBaDRJu5Oq0xdm6zTs1RlDyvuKgA5CI dsUOJzG+VB2FdycLQr/kJ80y08Y+H1nKAa3grYeOfJSrCQpYXA+a4t7C0bTsSBEMJhEq oPBCkzIH7e516O0is4P0oWVNAWMQ21OPJvKcumYQgNZD2Ouqr0KJActL0tqZ5E/wp1+X 1aPSwKrRt3kw38x+R+2dfZmS9EYZ1IfZvvOcVlWDLLgHhsM0pqoHsL4EYK6LhdbwYhnQ F5FupaHIKzyLIQhfEphKSkFlySRH8N49zvLanWy/prrk9AMQ2I8oxpsiUPw/YcyCMYRY PXpA== X-Gm-Message-State: ALoCoQnyvaU+l/g+bjuKqSqISmHdBgxWfiEv0xHgQ00gqQB6Ue37TV8Yd+9+dNuJ/hkdW3MlT0d9 X-Received: by 10.66.27.175 with SMTP id u15mr6518998pag.146.1379652244734; Thu, 19 Sep 2013 21:44:04 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id u7sm12994412pbf.12.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 21:42:44 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, michael.hennerich@analog.com, sachin.kamat@linaro.org Subject: [PATCH 2/4] Input: ad7877 - Remove redundant spi_set_drvdata Date: Fri, 20 Sep 2013 10:12:51 +0530 Message-Id: <1379652173-32477-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379652173-32477-1-git-send-email-sachin.kamat@linaro.org> References: <1379652173-32477-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 --- drivers/input/touchscreen/ad7877.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index f3a174a..69834dd 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c @@ -806,7 +806,6 @@ err_free_irq: err_free_mem: input_free_device(input_dev); kfree(ts); - spi_set_drvdata(spi, NULL); return err; } @@ -823,7 +822,6 @@ static int ad7877_remove(struct spi_device *spi) kfree(ts); dev_dbg(&spi->dev, "unregistered touchscreen\n"); - spi_set_drvdata(spi, NULL); return 0; }