Message ID | 1425418844-25177-42-git-send-email-fransklaver@gmail.com |
---|---|
State | Accepted |
Commit | 0033cf072735a80072c877559180288012f4426d |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0AA1D1401D0 for <incoming@patchwork.ozlabs.org>; Wed, 4 Mar 2015 09:14:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=SRAfeR7O; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSv3h-0002c4-Kk; Tue, 03 Mar 2015 22:12:57 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSux4-0004u2-5G for linux-mtd@bombadil.infradead.org; Tue, 03 Mar 2015 22:06:06 +0000 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSuaM-00078M-8r for linux-mtd@lists.infradead.org; Tue, 03 Mar 2015 21:42:38 +0000 Received: by wesw55 with SMTP id w55so42546415wes.4 for <linux-mtd@lists.infradead.org>; Tue, 03 Mar 2015 13:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hWNdeP9/rEc8T9HY+po28RY12TlH3Afcz14XW6GfW0U=; b=SRAfeR7ODRl2cqHqGCWX1HditvLM2vxO5y/VxAzpGqPZCjZQ83Q+TZkNe6HtOgk9h6 wdHDl2LxR9uL7dW6XNq2JSuvDh2fbRfY6M9ib3LtdryXfl+KxURn4H5XZivGAFWTjA4v Vac2PI13mwT6WppoIpTQKtVeuYr9YpNs3yNoS+E/U/Sy0D3uiCpSF9u4xxpcpXuD5PHs /kQ5S/42McmwIJj8t9esYeLA3NFAlBE3o39JFW8iP7O+tfZV4htmzfEZi+fBhGsuSgKh Gejqx2+HYvuPc9u1pnwy5vHibu7CPfh7Nm8CozVDiAE9QoFHeZfRrwINfpKICWDZfL0B KxwQ== X-Received: by 10.180.80.230 with SMTP id u6mr49817481wix.69.1425418938071; Tue, 03 Mar 2015 13:42:18 -0800 (PST) Received: from localhost.localdomain (82-171-48-45.ip.telfort.nl. [82.171.48.45]) by mx.google.com with ESMTPSA id dz6sm1256495wib.0.2015.03.03.13.42.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 13:42:17 -0800 (PST) From: Frans Klaver <fransklaver@gmail.com> To: Brian Norris <computersforpeace@gmail.com> Subject: [PATCH 41/60] mtd: nand: ndfc: show device in sysfs Date: Tue, 3 Mar 2015 22:40:25 +0100 Message-Id: <1425418844-25177-42-git-send-email-fransklaver@gmail.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1425418844-25177-1-git-send-email-fransklaver@gmail.com> References: <1425418844-25177-1-git-send-email-fransklaver@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150303_214238_376786_8FCA3924 X-CRM114-Status: GOOD ( 10.62 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on casper.infradead.org summary: Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c03:0:0:0:232 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fransklaver[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_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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Cc: linux-mtd@lists.infradead.org, Frans Klaver <fransklaver@gmail.com>, David Woodhouse <dwmw2@infradead.org>, linux-kernel@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 3187c6b..9c3f6c8 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -171,7 +171,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc, chip->priv = ndfc; ndfc->mtd.priv = chip; - ndfc->mtd.owner = THIS_MODULE; + ndfc->mtd.dev.parent = &ndfc->ofdev->dev; flash_np = of_get_next_child(node, NULL); if (!flash_np)
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner set by mtdcore. Signed-off-by: Frans Klaver <fransklaver@gmail.com> --- drivers/mtd/nand/ndfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)