Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3400038yba; Mon, 29 Apr 2019 01:24:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6eoGxBfPS1afYv1d33PhIAEISzpHRQ1YV3tIaduA69PuJh7G+A5MLQ1xiGqLfowgEoUhi X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr61214660plq.234.1556526287888; Mon, 29 Apr 2019 01:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556526287; cv=none; d=google.com; s=arc-20160816; b=Ry1/48Bv0rkuOSTUT3gR3zb6KQe6DZt9Lph4nOypY7VincXmLqlcuuwq0AzlVNdNSD Hn4bc98aaz5zHkVAgmIFeqBOTS7eCdDHjwndj3iXofKezrRlm/9G/EhSYYUuc0lQ5NVw K8hE1HhUceJ4x43Nc2xPjLpTcIqetoZEz1UxtyY1tf25QhmGMzvFuBCF3AxHi7e6mQh+ hoOZS+HiKwbjdyHkabV3m0jdfL9h5P2sDynOtkSq+T+ZvDVhgpw3aLz+DbHZuayy08+k UcvgJ+sFk0s6y+PvylKFxANRFyeazdhHLL8ias+qKboajcI4CJfQO6OTcImYU08dDA0B 5j7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=I0ETjctZEGryTFKBGQ4j65EEz9/BKI3zM+1VbxY4GTU=; b=LYGhZNi5CmjS0/m4SdPrjTVAGMjveSkAE+55XvHj6uMvgIQCriFTbOfWBXuS3WkBLw QgqXwcrN03iI/7nDTHBjZD8Yx9MsPXmDn0LNNM36ka0rrRXbMpoxPkEcpdzaUD+2E24L /66HSVzb0D4vHlByREu9OtZr8pZWQvNUxfX6IhykCkZRmNGF8RXth7TnKnaJlXVIb+qJ WM0GSRvFeTa82ZOrW/h/Ry7Civ4n3IhR2DOSy52JRUgCy4rdwhcgvjDyJHiqJrls/6mu un+7hWIwdZnsh8D5T082U7944mt5Xz0Wqra8DM3N5XJTuR5/p1zhal8CS3RFlAaAbYJp +JXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si22232497pgi.207.2019.04.29.01.24.31; Mon, 29 Apr 2019 01:24:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727622AbfD2IWX convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Apr 2019 04:22:23 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:36095 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727480AbfD2IWW (ORCPT ); Mon, 29 Apr 2019 04:22:22 -0400 X-Originating-IP: 90.88.147.33 Received: from xps13 (aaubervilliers-681-1-27-33.w90-88.abo.wanadoo.fr [90.88.147.33]) (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 4BCAEFF81D; Mon, 29 Apr 2019 08:22:17 +0000 (UTC) Date: Mon, 29 Apr 2019 10:22:16 +0200 From: Miquel Raynal To: =?UTF-8?B?UGF3ZcWC?= Chmiel Cc: kyungmin.park@samsung.com, bbrezillon@kernel.org, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tomasz Figa Subject: Re: [PATCH 5/5] mtd: onenand/samsung: Set name field of mtd_info struct Message-ID: <20190429102216.3235c48c@xps13> In-Reply-To: <20190426164224.11327-6-pawel.mikolaj.chmiel@gmail.com> References: <20190426164224.11327-1-pawel.mikolaj.chmiel@gmail.com> <20190426164224.11327-6-pawel.mikolaj.chmiel@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paweł, Paweł Chmiel wrote on Fri, 26 Apr 2019 18:42:24 +0200: > From: Tomasz Figa > > 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 > Signed-off-by: Paweł Chmiel > --- > drivers/mtd/nand/onenand/samsung.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/onenand/samsung.c b/drivers/mtd/nand/onenand/samsung.c > index 0f450604412f..1fda1f324cc6 100644 > --- a/drivers/mtd/nand/onenand/samsung.c > +++ b/drivers/mtd/nand/onenand/samsung.c > @@ -886,6 +886,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.of_node = np; > mtd->dev.parent = &pdev->dev; Reviewed-by: Miquel Raynal Thanks, Miquèl