From patchwork Wed Jun 10 20:38:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Klaver X-Patchwork-Id: 482917 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 C6CA3140290 for ; Thu, 11 Jun 2015 07:10:47 +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=iQfeaKNV; 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 1Z2nFn-0006z1-4x; Wed, 10 Jun 2015 21:09:43 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2n5z-0005bu-7h for linux-mtd@bombadil.infradead.org; Wed, 10 Jun 2015 20:59:35 +0000 Received: from mail-wi0-x242.google.com ([2a00:1450:400c:c05::242]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2mmi-0003ib-Jg for linux-mtd@lists.infradead.org; Wed, 10 Jun 2015 20:39:41 +0000 Received: by wivr20 with SMTP id r20so11944849wiv.1 for ; Wed, 10 Jun 2015 13:39:18 -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=SPRg+3BGM0c7tQ4y7jn2B9B4JCEbj+QuCEwK+LGaLFE=; b=iQfeaKNVEPq5iPnf/QcfCiP5uQjIJA4piuh5BqY/tJtb1I+quIo5IibaQYGgp+effK aDqB91BRL89jAKVJ4yhPdrydC4p4zQqBs+ivBZT7dzvmP2oHls3CBZk1eob20AczwFRy a5DunX8MnU/KpyW94bgDckSHe0XbOXt3YJ0Eut3byqJ2YaeV1qSTaBmOerqm31AIfjFZ QOdH3Tu4cWL593H9hmeTzRmRqZrTlIOTo3zIRLZAcTb0jA01chQ3CSeYEt5vZLCdp9Bo 03mwHfF6OkeMCztbpyZ+X+AeMJR5RfsQSQglY4NtHJVrzfYyhnsKyxkX98VPkxbSa87z Lq6g== X-Received: by 10.180.206.229 with SMTP id lr5mr22886084wic.86.1433968758133; Wed, 10 Jun 2015 13:39:18 -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.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 13:39:17 -0700 (PDT) From: Frans Klaver To: Brian Norris Subject: [PATCH v2 09/60] mtd: lpddr: show parent device in sysfs Date: Wed, 10 Jun 2015 22:38:23 +0200 Message-Id: <1433968754-10651-10-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_163940_816310_56D3EB39 X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -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_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 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c05:0:0:0:242 listed in] [list.dnswl.org] 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 mtd parent device symlinks aren't shown in sysfs. Signed-off-by: Frans Klaver --- drivers/mtd/lpddr/lpddr2_nvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/lpddr/lpddr2_nvm.c b/drivers/mtd/lpddr/lpddr2_nvm.c index 063cec4..2342277 100644 --- a/drivers/mtd/lpddr/lpddr2_nvm.c +++ b/drivers/mtd/lpddr/lpddr2_nvm.c @@ -460,6 +460,7 @@ static int lpddr2_nvm_probe(struct platform_device *pdev) /* Populate mtd_info data structure */ *mtd = (struct mtd_info) { + .dev = { .parent = &pdev->dev }, .name = pdev->dev.init_name, .type = MTD_RAM, .priv = map,