Message ID | 1425418844-25177-45-git-send-email-fransklaver@gmail.com |
---|---|
State | Accepted |
Commit | 84630994fab634baa0250fbd16537f74c8bdbb07 |
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 C7018140172 for <incoming@patchwork.ozlabs.org>; Wed, 4 Mar 2015 09:12:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=S1xEm//N; 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 1YSv1p-0001Ga-NR; Tue, 03 Mar 2015 22:11:01 +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 1YSux0-0004u2-Q2 for linux-mtd@bombadil.infradead.org; Tue, 03 Mar 2015 22:06:02 +0000 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSuaQ-00078S-Io for linux-mtd@lists.infradead.org; Tue, 03 Mar 2015 21:42:43 +0000 Received: by wesx3 with SMTP id x3so42586206wes.6 for <linux-mtd@lists.infradead.org>; Tue, 03 Mar 2015 13:42:21 -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=FWk1jqGxCQQZW4Cwu9P8Hy3mNRaXDPk+N7/L2Q34zCQ=; b=S1xEm//Nidh8/kb2oogqNIN0nWHlTLRjMmP4aD3d8dUxCtC4ie+QMyDSOBCauggQfj dfbhbIl6BkLz3AsIsINmggkYkdSNSNIW7UmFkPYoPSuaVtSraNmZ2cKIsjIcFrfoI52U 3xW8aQZ5VEYhzF9OX0YcYJ/5//euxkJW/98pU93CTK+K+N5W7jUzYuxWea/u0UEYGpnQ T/yJoguscmyQ0dTiwfTKVZ0AKcH46IFEAnpSsRIr/ReFRjO87212tgLyR7us+CIzvHiV Ep70pL1WXaCm41STCeNt04ss+JF/8L71YC1IKZIr1XE4pHtQIvbk94ZM+uB5/cNBX+cL WGRg== X-Received: by 10.180.82.40 with SMTP id f8mr6726955wiy.60.1425418940997; Tue, 03 Mar 2015 13:42:20 -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.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 13:42:20 -0800 (PST) From: Frans Klaver <fransklaver@gmail.com> To: Brian Norris <computersforpeace@gmail.com> Subject: [PATCH 44/60] mtd: nand: orion_nand: show device in sysfs Date: Tue, 3 Mar 2015 22:40:28 +0100 Message-Id: <1425418844-25177-45-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_214242_647146_35243710 X-CRM114-Status: GOOD ( 11.49 ) 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:233 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/orion_nand.c b/drivers/mtd/nand/orion_nand.c index c3c6d30..81897ef 100644 --- a/drivers/mtd/nand/orion_nand.c +++ b/drivers/mtd/nand/orion_nand.c @@ -124,7 +124,7 @@ static int __init orion_nand_probe(struct platform_device *pdev) } mtd->priv = nc; - mtd->owner = THIS_MODULE; + mtd->dev.parent = &pdev->dev; nc->priv = board; nc->IO_ADDR_R = nc->IO_ADDR_W = io_base;
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver <fransklaver@gmail.com> --- drivers/mtd/nand/orion_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)