Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754589AbbFJUlg (ORCPT ); Wed, 10 Jun 2015 16:41:36 -0400 Received: from mail-wg0-f68.google.com ([74.125.82.68]:34927 "EHLO mail-wg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965241AbbFJUkN (ORCPT ); Wed, 10 Jun 2015 16:40:13 -0400 From: Frans Klaver To: Brian Norris Cc: Frans Klaver , David Woodhouse , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH v2 59/60] mtd: spi-nor: fsl-quadspi: show parent device in sysfs Date: Wed, 10 Jun 2015 22:39:13 +0200 Message-Id: <1433968754-10651-60-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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 832 Lines: 27 Fix a bug where mtd parent device symlinks aren't shown in sysfs. Signed-off-by: Frans Klaver --- drivers/mtd/spi-nor/fsl-quadspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c index 5d5d362..f7cd06b 100644 --- a/drivers/mtd/spi-nor/fsl-quadspi.c +++ b/drivers/mtd/spi-nor/fsl-quadspi.c @@ -874,6 +874,7 @@ static int fsl_qspi_probe(struct platform_device *pdev) nor = &q->nor[i]; mtd = &q->mtd[i]; + mtd->dev.parent = dev; nor->mtd = mtd; nor->dev = dev; -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/