[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CY4PR04MB0567121FF1C304D782B07E58CBF69@CY4PR04MB0567.namprd04.prod.outlook.com>
Date: Fri, 22 Apr 2022 20:46:19 -0700
From: Jonathan Bakker <xc-racer2@...e.ca>
To: Miquel Raynal <miquel.raynal@...tlin.com>
Cc: Kyungmin Park <kyungmin.park@...sung.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org,
Tomasz Figa <tomasz.figa@...il.com>,
Paweł Chmiel <pawel.mikolaj.chmiel@...il.com>,
Jonathan Bakker <xc-racer2@...e.ca>
Subject: [PATCH 2/5] mtd: onenand: samsung: Set name field of mtd_info struct
From: Tomasz Figa <tomasz.figa@...il.com>
This patch adds initialization of .name field of mtd_info struct to
avoid printing "(null)" in kernel log messages, such as:
[ 1.942519] 1 ofpart partitions found on MTD device (null)
[ 1.949708] Creating 1 MTD partitions on "(null)":
Signed-off-by: Tomasz Figa <tomasz.figa@...il.com>
Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@...il.com>
Reviewed-by: Miquel Raynal <miquel.raynal@...tlin.com>
Signed-off-by: Jonathan Bakker <xc-racer2@...e.ca>
---
drivers/mtd/nand/onenand/onenand_samsung.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/onenand/onenand_samsung.c b/drivers/mtd/nand/onenand/onenand_samsung.c
index b64895573515..924f5ddc9505 100644
--- a/drivers/mtd/nand/onenand/onenand_samsung.c
+++ b/drivers/mtd/nand/onenand/onenand_samsung.c
@@ -853,6 +853,7 @@ static int s3c_onenand_probe(struct platform_device *pdev)
return -ENOMEM;
this = (struct onenand_chip *) &mtd[1];
+ mtd->name = dev_name(&pdev->dev);
mtd->priv = this;
mtd->dev.parent = &pdev->dev;
onenand->pdev = pdev;
--
2.30.2
Powered by blists - more mailing lists