From: Scott Branden <sbranden@broadcom.com>
To: Brian Norris <computersforpeace@gmail.com>,
<linux-mtd@lists.infradead.org>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
<bcm-kernel-feedback-list@broadcom.com>,
Kamal Dasu <kdasu.kdev@gmail.com>
Subject: Re: [PATCH] mtd: brcmnand: drop brcmnand_host::of_node field
Date: Tue, 1 Dec 2015 09:17:27 -0800 [thread overview]
Message-ID: <565DD627.5010400@broadcom.com> (raw)
In-Reply-To: <1448935287-144366-1-git-send-email-computersforpeace@gmail.com>
Looks good.
On 15-11-30 06:01 PM, Brian Norris wrote:
> We don't actually need to stash a copy of this device_node indefinitely;
> we only need it in brcmnand_init_cs().
>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> Cc: <bcm-kernel-feedback-list@broadcom.com>
> Cc: Kamal Dasu <kdasu.kdev@gmail.com>
Acked-by: Scott Branden <sbranden@broadcom.com>
> ---
> drivers/mtd/nand/brcmnand/brcmnand.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c
> index ad756f626f4b..35d78f739d91 100644
> --- a/drivers/mtd/nand/brcmnand/brcmnand.c
> +++ b/drivers/mtd/nand/brcmnand/brcmnand.c
> @@ -176,7 +176,6 @@ struct brcmnand_cfg {
>
> struct brcmnand_host {
> struct list_head node;
> - struct device_node *of_node;
>
> struct nand_chip chip;
> struct mtd_info mtd;
> @@ -1902,10 +1901,9 @@ static int brcmnand_setup_dev(struct brcmnand_host *host)
> return 0;
> }
>
> -static int brcmnand_init_cs(struct brcmnand_host *host)
> +static int brcmnand_init_cs(struct brcmnand_host *host, struct device_node *dn)
> {
> struct brcmnand_controller *ctrl = host->ctrl;
> - struct device_node *dn = host->of_node;
> struct platform_device *pdev = host->pdev;
> struct mtd_info *mtd;
> struct nand_chip *chip;
> @@ -2239,9 +2237,8 @@ int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc)
> }
> host->pdev = pdev;
> host->ctrl = ctrl;
> - host->of_node = child;
>
> - ret = brcmnand_init_cs(host);
> + ret = brcmnand_init_cs(host, child);
> if (ret) {
> devm_kfree(dev, host);
> continue; /* Try all chip-selects */
>
next prev parent reply other threads:[~2015-11-30 18:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 2:01 [PATCH] mtd: brcmnand: drop brcmnand_host::of_node field Brian Norris
2015-12-01 17:17 ` Scott Branden [this message]
2015-12-01 19:19 ` Brian Norris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565DD627.5010400@broadcom.com \
--to=sbranden@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=computersforpeace@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=kdasu.kdev@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).