From patchwork Fri Sep 20 04:44:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2914971 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 563CA9F557 for ; Fri, 20 Sep 2013 04:44:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98CAF20364 for ; Fri, 20 Sep 2013 04:44:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C777020326 for ; Fri, 20 Sep 2013 04:44:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753681Ab3ITEom (ORCPT ); Fri, 20 Sep 2013 00:44:42 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:56455 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753616Ab3ITEoi (ORCPT ); Fri, 20 Sep 2013 00:44:38 -0400 Received: by mail-pb0-f42.google.com with SMTP id un15so9263416pbc.15 for ; Thu, 19 Sep 2013 21:44:38 -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; bh=X8Kx9LISDQD+oZRP6Al++Soh96TSb4gyf9XjjcDbJKY=; b=iv84HZWgMDIdTdW+xwmwojpYpJncykg+TV4h1XaCTYbsIUslT9J4CXFFMtLfMNKccG 286vayXa02nAi+Fa2kjWFZGUFy4XwsUP/S/LQJqTv0ovpYq+E3gIXICIHN1yqW8ic6Wd S9np9deKSfnMz2vW0WXWkZzuPP0mHXjldpUOwEeS/S3C/GyYqcDzD5tvVwTMAQt33g9v 8cBoi7s5HOc3uZJ+SnW9Hh3eU3hT1FS48glSgLGgZCTDB2dnBIv27jpmrkixa3p2M7Ss TvIbcIJWNQpOsHGWt9m76/XTAIroMmeLzYdGK+HKPhmwKy2+aIbzTeeQfbqOsmkBH4lW Ck1Q== X-Gm-Message-State: ALoCoQmcvDbmpLtFijSD1mfrLrsNkKMygFryRRpqeE2vLmpNSMQUk9jFAqnVdjCgbd4a0vq8pssf X-Received: by 10.67.5.132 with SMTP id cm4mr1046880pad.186.1379652277958; Thu, 19 Sep 2013 21:44:37 -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:37 -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 3/4] Input: ad7879-spi - Remove redundant spi_set_drvdata Date: Fri, 20 Sep 2013 10:14:48 +0530 Message-Id: <1379652289-300-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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/ad7879-spi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c index 606da5b..1a7b114 100644 --- a/drivers/input/touchscreen/ad7879-spi.c +++ b/drivers/input/touchscreen/ad7879-spi.c @@ -142,7 +142,6 @@ static int ad7879_spi_remove(struct spi_device *spi) struct ad7879 *ts = spi_get_drvdata(spi); ad7879_remove(ts); - spi_set_drvdata(spi, NULL); return 0; }