From patchwork Tue Oct 8 09:21:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 281375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6D8EF2C00B3 for ; Tue, 8 Oct 2013 20:22:57 +1100 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTTV3-0000qr-Cr; Tue, 08 Oct 2013 09:22:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTTV1-0007xz-DC; Tue, 08 Oct 2013 09:22:39 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTTUy-0007x8-8l for linux-mtd@lists.infradead.org; Tue, 08 Oct 2013 09:22:36 +0000 Received: by mail-pa0-f54.google.com with SMTP id kx10so8592007pab.41 for ; Tue, 08 Oct 2013 02:22:13 -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=4ZtfFGY65hnWRyDkaW9ywkq6Zl9ZANHoyyTvZ7J5QaQ=; b=CR909uqq+tWjbQ5ltxtbCVbd/WE7NW34p+oodVuQyiK81FYgPrw1EpwpDnxkcIBNxD kKSh8e9JRpjtbQSVOX5iEjH18TNMMJtVL1LHTWGvvofTrhdcmDIZEb2ZXITK9G/Ul7LO 2SECHGqPUDUdtuesUrp1YKCN06VVvE0hfqrP/5JeBOSt/IjI1lmB0fcRZfy7hWU267Qo TwFEcn2sVSN2Jnl/FMA6ttxyH0InezKs0q114ySV7Slu8CqIwXstIZBlXrvRJ+mXc4BT H01N5pub499wLqxFgoLpNebMgUr09POqyWA2AVNWXPcgK8v2eMf8XSKQR/NZ2nuCLu7x vE8g== X-Gm-Message-State: ALoCoQn+mFnwESznXkPOKr465EkJXRjoHazeeiwG8O1URebBXwT2hp3X6bUcs+hkXOrxSaM3hj0Y X-Received: by 10.68.186.227 with SMTP id fn3mr746505pbc.170.1381224130749; Tue, 08 Oct 2013 02:22:10 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ab4sm38688591pbc.43.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 02:22:10 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Subject: [PATCH 1/2] mtd: sst25l: Remove redundant spi_set_drvdata Date: Tue, 8 Oct 2013 14:51:33 +0530 Message-Id: <1381224094-14098-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131008_052236_384114_5061667A X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.54 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: computersforpeace@gmail.com, artem.bityutskiy@linux.intel.com, andre@bluewatersys.com, dwmw2@infradead.org, sachin.kamat@linaro.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Driver core will set the driver data to NULL upon detach or probe failure. Signed-off-by: Sachin Kamat --- drivers/mtd/devices/sst25l.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index a42f1f0..7cc70db 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c @@ -404,7 +404,6 @@ static int sst25l_probe(struct spi_device *spi) data ? data->nr_parts : 0); if (ret) { kfree(flash); - spi_set_drvdata(spi, NULL); return -ENODEV; }