From patchwork Mon Nov 11 06:18:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 290188 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5F5CC2C00AA for ; Mon, 11 Nov 2013 17:19:11 +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 1Vfkpx-0002fe-5q; Mon, 11 Nov 2013 06:19:01 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vfkpv-0005yX-IZ; Mon, 11 Nov 2013 06:18:59 +0000 Received: from mail-bk0-x234.google.com ([2a00:1450:4008:c01::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vfkpr-0005xi-2i for linux-mtd@lists.infradead.org; Mon, 11 Nov 2013 06:18:57 +0000 Received: by mail-bk0-f52.google.com with SMTP id v10so1525496bkz.11 for ; Sun, 10 Nov 2013 22:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=9+V94mAem5xklpZkJo25buk2Das+671bkJPjsLoQIPw=; b=jQq5g1fWmn3kBPfJwn/19e17igRdx0lb/T1fQdiUhv5WWZIHzL0JoZtYspUWbdtnrl 2EnZbJmiexMAMo3kxZcRonrzEXqzCjblp8uHpKeRwjRfYcLhFai9u74JcJx/duZknPp9 hQQHiSV8AVNfJ/75Wb/nEw+zDL8PEbwRSEYv5hEdIgBq/JH9g0cLEZMa9gux2q1bozul 9vQuc91/P+uSufBWLnwam/iU5Tt8jJZZkUSfr6uJOPF9cwzllAzmXDfpxka0CyGP/MKV UTFrrDmV0TYHIYlB/yF9TVR8Lgq89eDEmdHv4OR5e796h1QYtQnDGDm8C553jjcGusuX NIMg== MIME-Version: 1.0 X-Received: by 10.204.173.6 with SMTP id n6mr19826562bkz.5.1384150709590; Sun, 10 Nov 2013 22:18:29 -0800 (PST) Received: by 10.204.169.136 with HTTP; Sun, 10 Nov 2013 22:18:29 -0800 (PST) Date: Mon, 11 Nov 2013 14:18:29 +0800 Message-ID: Subject: [PATCH] MIPS: Alchemy: add missing platform_set_drvdata() in au1550nd_probe() From: Wei Yongjun To: dwmw2@infradead.org, wfp5p@virginia.edu, artem.bityutskiy@linux.intel.com, jg1.han@samsung.com, computersforpeace@gmail.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131111_011855_287664_8E94CC7F X-CRM114-Status: UNSURE ( 7.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (weiyj.lk[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: yongjun_wei@trendmicro.com.cn, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.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: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Wei Yongjun Add missing platform_set_drvdata() in au1550nd_probe(), otherwise calling platform_get_drvdata() in remove returns NULL. Signed-off-by: Wei Yongjun --- drivers/mtd/nand/au1550nd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c index ae8dd7c..909b673 100644 --- a/drivers/mtd/nand/au1550nd.c +++ b/drivers/mtd/nand/au1550nd.c @@ -480,6 +480,8 @@ static int au1550nd_probe(struct platform_device *pdev) mtd_device_register(&ctx->info, pd->parts, pd->num_parts); + platform_set_drvdata(pdev, ctx); + return 0; out3: