From: Brian Norris <computersforpeace@gmail.com>
To: Alexey Klimov <klimov.linux@gmail.com>
Cc: Stefan Agner <stefan@agner.ch>,
David Woodhouse <dwmw2@infradead.org>,
sebastian@breakpoint.cc, robh+dt@kernel.org, pawel.moll@arm.com,
Mark Rutland <mark.rutland@arm.com>,
ijc+devicetree@hellion.org.uk, Kumar Gala <galak@codeaurora.org>,
Shawn Guo <shawn.guo@linaro.org>,
kernel@pengutronix.de, boris.brezillon@free-electrons.com,
marb@ixxat.de, aaron@tastycactus.com,
Bill Pringlemeir <bpringlemeir@gmail.com>,
linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
albert.aribaud@3adev.fr,
Bill Pringlemeir <bpringlemeir@nbsps.com>
Subject: Re: [PATCH v12 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others
Date: Tue, 29 Sep 2015 13:55:48 -0700 [thread overview]
Message-ID: <20150929205548.GO31505@google.com> (raw)
In-Reply-To: <CALW4P+LDwFnCjOorh7iCr8TrUnync7a_zkdZ4Hp_91=60AtUQw@mail.gmail.com>
On Fri, Sep 04, 2015 at 07:10:10AM +0300, Alexey Klimov wrote:
> On Thu, Sep 3, 2015 at 4:06 AM, Stefan Agner <stefan@agner.ch> wrote:
> > --- /dev/null
> > +++ b/drivers/mtd/nand/vf610_nfc.c
> > +static int vf610_nfc_probe(struct platform_device *pdev)
> > +{
> > + struct vf610_nfc *nfc;
> > + struct resource *res;
> > + struct mtd_info *mtd;
> > + struct nand_chip *chip;
> > + struct device_node *child;
> > + const struct of_device_id *of_id;
> > + int err = 0;
>
> According to usage you don't need to initialize err to zero here.
Fixed this one.
> > + int irq;
> > +
> > + nfc = devm_kzalloc(&pdev->dev, sizeof(*nfc), GFP_KERNEL);
> > + if (!nfc)
> > + return -ENOMEM;
> > +
> > + nfc->dev = &pdev->dev;
> > + mtd = &nfc->mtd;
> > + chip = &nfc->chip;
> > +
> > + mtd->priv = chip;
> > + mtd->owner = THIS_MODULE;
> > + mtd->dev.parent = nfc->dev;
> > + mtd->name = DRV_NAME;
> > +
> > + irq = platform_get_irq(pdev, 0);
> > + if (irq <= 0)
> > + return -EINVAL;
> > +
> > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > + nfc->regs = devm_ioremap_resource(nfc->dev, res);
> > + if (IS_ERR(nfc->regs))
> > + return PTR_ERR(nfc->regs);
> > +
> > + nfc->clk = devm_clk_get(&pdev->dev, NULL);
> > + if (IS_ERR(nfc->clk))
> > + return PTR_ERR(nfc->clk);
> > +
> > + err = clk_prepare_enable(nfc->clk);
> > + if (err) {
> > + dev_err(nfc->dev, "Unable to enable clock!\n");
> > + return err;
> > + }
>
> After fixing that feel free to use:
>
> Reviewed-by: Alexey Klimov <klimov.linux@gmail.com>
Also, fixed up the nand_chip field name change (from 'dn' to
'flash_node'), and pushed to l2-mtd.git
Thanks,
Brian
next prev parent reply other threads:[~2015-09-29 20:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-03 1:06 [PATCH v12 0/5] mtd: nand: vf610_nfc: Freescale NFC for VF610 Stefan Agner
2015-09-03 1:06 ` [PATCH v12 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others Stefan Agner
[not found] ` <1441242397-870-2-git-send-email-stefan-XLVq0VzYD2Y@public.gmane.org>
2015-09-04 4:10 ` Alexey Klimov
2015-09-29 20:55 ` Brian Norris [this message]
[not found] ` <1441242397-870-1-git-send-email-stefan-XLVq0VzYD2Y@public.gmane.org>
2015-09-03 1:06 ` [PATCH v12 2/5] mtd: nand: vf610_nfc: add hardware BCH-ECC support Stefan Agner
[not found] ` <1441242397-870-3-git-send-email-stefan-XLVq0VzYD2Y@public.gmane.org>
2015-09-29 20:57 ` Brian Norris
2015-10-07 23:34 ` Stefan Agner
2015-09-03 1:06 ` [PATCH v12 4/5] ARM: dts: vf610twr: add NAND flash controller peripherial Stefan Agner
2015-09-03 1:06 ` [PATCH v12 3/5] mtd: nand: vf610_nfc: add device tree bindings Stefan Agner
[not found] ` <1441242397-870-4-git-send-email-stefan-XLVq0VzYD2Y@public.gmane.org>
2015-09-29 20:59 ` Brian Norris
2015-09-03 1:06 ` [PATCH v12 5/5] ARM: dts: vf-colibri: enable NAND flash controller Stefan Agner
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=20150929205548.GO31505@google.com \
--to=computersforpeace@gmail.com \
--cc=aaron@tastycactus.com \
--cc=albert.aribaud@3adev.fr \
--cc=boris.brezillon@free-electrons.com \
--cc=bpringlemeir@gmail.com \
--cc=bpringlemeir@nbsps.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=kernel@pengutronix.de \
--cc=klimov.linux@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marb@ixxat.de \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sebastian@breakpoint.cc \
--cc=shawn.guo@linaro.org \
--cc=stefan@agner.ch \
/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).