From patchwork Tue Mar 3 21:40: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: 445932 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 3183D1400B6 for ; Wed, 4 Mar 2015 09:08:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=RPfhanJA; 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 1YSuy0-0005Wy-Hb; Tue, 03 Mar 2015 22:07:04 +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 1YSuwr-0004mR-Hy for linux-mtd@bombadil.infradead.org; Tue, 03 Mar 2015 22:05:53 +0000 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSuaL-0004tp-Tp for linux-mtd@lists.infradead.org; Tue, 03 Mar 2015 21:42:38 +0000 Received: by widex7 with SMTP id ex7so26102695wid.0 for ; Tue, 03 Mar 2015 13:42:16 -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=Bk0qkR+F2CbsfXJTugPikvpBt2Hes1pZd4InnAC5t5o=; b=RPfhanJAk2PL8JYrmGGx35sH50ajKbDHP//H2d2IMAsjqStCGht0Cun0//ddBVn/Kg dOCsjUgQHyWqGBRTxbaS6dFCWGS3bBtEfD//92NSJ5UFpWdBez0uND8Xb4IpgFeEuej8 YHoi9L9Ta+jwEOM3rJNfW/UmbBKD37x4KOLZUaw1hg4rj8wi2stA2uHYdrxHLuISOgbQ /mO00TromYYZSg9R04DXtJY9+KwlopHI/lO2C/W9olKiOTAnvMZ9nbSKSqDt/0hOmy3r /MVsv/+OtOwoDiDtC8r2k3XeNpe85WC5l5FXjBMtwBM30AdM04GFFhrbb99/k8lle+9f lnKw== X-Received: by 10.180.74.15 with SMTP id p15mr49530293wiv.63.1425418936269; Tue, 03 Mar 2015 13:42:16 -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.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 13:42:15 -0800 (PST) From: Frans Klaver To: Brian Norris Subject: [PATCH 39/60] mtd: nand: mpc5121_nfc: show device in sysfs Date: Tue, 3 Mar 2015 22:40:23 +0100 Message-Id: <1425418844-25177-40-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_164238_097566_F9D43ADC X-CRM114-Status: GOOD ( 10.02 ) 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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c05:0:0:0:22c 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_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: 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 devices aren't shown in sysfs. Signed-off-by: Frans Klaver --- drivers/mtd/nand/mpc5121_nfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 1f12e5b..b97c371 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c @@ -659,6 +659,7 @@ static int mpc5121_nfc_probe(struct platform_device *op) chip = &prv->chip; mtd->priv = chip; + mtd->dev.parent = dev; chip->priv = prv; prv->dev = dev;