From patchwork Wed Jun 10 20:38:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Klaver X-Patchwork-Id: 482890 Return-Path: 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 8ECE8140295 for ; Thu, 11 Jun 2015 06:58:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=AaF5vT8l; 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 1Z2n3X-0004NO-DI; Wed, 10 Jun 2015 20:57:03 +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 1Z2mov-0002Nj-Nk for linux-mtd@bombadil.infradead.org; Wed, 10 Jun 2015 20:41:57 +0000 Received: from mail-wg0-x243.google.com ([2a00:1450:400c:c00::243]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2mmx-00059i-TS for linux-mtd@lists.infradead.org; Wed, 10 Jun 2015 20:39:57 +0000 Received: by wggx12 with SMTP id x12so8979061wgg.3 for ; Wed, 10 Jun 2015 13:39:34 -0700 (PDT) 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=63D17lXGg2cGgCm8TuzUo5sIpj8FLkDVVmcif6Cx6Dw=; b=AaF5vT8lrLj9jP5fpo/gFUFKj9sEBb1dTs5EDUpT0L/9eyuUCnIwgIXugbKkdtjor7 yG0Skzn95dznjNVethnfR23LCBodZ+vT6rwrJ1S3B0RK/WLHySAyZ2VzszLvkQr/ShGG Z78pyPoIwGslRIx6HSWG0jgPzmAaR1OhQrnlBhUmZuKNy+71W4JRYKKze1baxm6GJAGs va8aghYC4EGBzRx8pXqcSKzWshOyxBpkBw4AmoT+S9B3iIb6u1qKIeoaqQEkLMU29pS3 M1Fq271SnZBKdMXV3/2iQ+u4acoSUlcHQvdGezxA6YoE4xb2KhbaX1eLQqHLsHBf0VCF Mdkw== X-Received: by 10.194.90.100 with SMTP id bv4mr9181657wjb.143.1433968774912; Wed, 10 Jun 2015 13:39:34 -0700 (PDT) Received: from localhost.localdomain (82-171-48-45.ip.telfort.nl. [82.171.48.45]) by mx.google.com with ESMTPSA id a8sm9608025wic.22.2015.06.10.13.39.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 13:39:34 -0700 (PDT) From: Frans Klaver To: Brian Norris Subject: [PATCH v2 24/60] mtd: nand: bcm47xxnflash: show parent device in sysfs Date: Wed, 10 Jun 2015 22:38:38 +0200 Message-Id: <1433968754-10651-25-git-send-email-fransklaver@gmail.com> X-Mailer: git-send-email 2.4.0 In-Reply-To: <1433968754-10651-1-git-send-email-fransklaver@gmail.com> References: <1433968754-10651-1-git-send-email-fransklaver@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150610_213955_986612_1F15CA53 X-CRM114-Status: GOOD ( 12.25 ) 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:c00:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fransklaver[at]gmail.com) -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 , David Woodhouse , 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 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 Fix a bug where parent device symlinks aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver --- drivers/mtd/nand/bcm47xxnflash/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/bcm47xxnflash/main.c b/drivers/mtd/nand/bcm47xxnflash/main.c index 461577c..9ba0c0f 100644 --- a/drivers/mtd/nand/bcm47xxnflash/main.c +++ b/drivers/mtd/nand/bcm47xxnflash/main.c @@ -34,7 +34,7 @@ static int bcm47xxnflash_probe(struct platform_device *pdev) return -ENOMEM; b47n->nand_chip.priv = b47n; - b47n->mtd.owner = THIS_MODULE; + b47n->mtd.dev.parent = &pdev->dev; b47n->mtd.priv = &b47n->nand_chip; /* Required */ b47n->cc = container_of(nflash, struct bcma_drv_cc, nflash);