From patchwork Fri Sep 20 04:42:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2914951 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 E45949F1BF for ; Fri, 20 Sep 2013 04:42:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2084F20347 for ; Fri, 20 Sep 2013 04:42:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 29E2120322 for ; Fri, 20 Sep 2013 04:42:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752214Ab3ITEmn (ORCPT ); Fri, 20 Sep 2013 00:42:43 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:48940 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186Ab3ITEmn (ORCPT ); Fri, 20 Sep 2013 00:42:43 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so252435pab.6 for ; Thu, 19 Sep 2013 21:42:42 -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=avcr0s91ci1XVSrJhTvn3F+BKw05W8PKuKN8lCe5o0k=; b=I7o0Z3AZys+evTv6rMo6DJMZ3WDm/0sVpJcuK2fmJsNKkT2lPsm6gDHsB9JQKBCFI3 Xr+zYRAYf6PMMOSFYQXr2gggjxX87RMKJ5/0DOk6EcQih7XMm0d7IctJKeIeotsg0e60 Wd3K0CW9BUalGHe+wuudr4yHTYQpnmZlZHXlaolwysw6XoH2iL5aYxjB31WRyq/R7jLI swK1WdyWqTcYmUz014gENCz7YJEcJiq0YTzHSTAom+dL6SarUauQ58loRPFSrsevGC1A B+3V0/ewYQ7Wl2GfQwNqxqFjvfKo2rbCH+aPcgrvoe/sHzXMiXq2rHX6Ur81coLRLP1A OHiQ== X-Gm-Message-State: ALoCoQmnwBWI2Pg8cpLiuNtzTieUrWqb2H+TKFW5LPxjg70GfLQmkvjgRkgGiHFe4AHBu3iPe3jF X-Received: by 10.66.26.194 with SMTP id n2mr6569866pag.151.1379652162653; Thu, 19 Sep 2013 21:42:42 -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:41 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, michael.hennerich@analog.com, sachin.kamat@linaro.org, Barry Song <21cnbao@gmail.com> Subject: [PATCH 1/4] Input: ad714x-spi - Remove redundant spi_set_drvdata Date: Fri, 20 Sep 2013 10:12:50 +0530 Message-Id: <1379652173-32477-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 Cc: Barry Song <21cnbao@gmail.com> --- Series compile tested. --- drivers/input/misc/ad714x-spi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/ad714x-spi.c b/drivers/input/misc/ad714x-spi.c index 6189148..3a90b71 100644 --- a/drivers/input/misc/ad714x-spi.c +++ b/drivers/input/misc/ad714x-spi.c @@ -108,7 +108,6 @@ static int ad714x_spi_remove(struct spi_device *spi) struct ad714x_chip *chip = spi_get_drvdata(spi); ad714x_remove(chip); - spi_set_drvdata(spi, NULL); return 0; }