[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANk1AXTSE+JXn1rinhdxeuOHgFZKga6SvGvTcNwN1knSNxwjjQ@mail.gmail.com>
Date: Tue, 12 Feb 2019 11:07:01 -0600
From: Alan Tull <atull@...nel.org>
To: Moritz Fischer <moritz.fischer@...us.com>
Cc: Nava kishore Manne <nava.manne@...inx.com>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Michal Simek <michal.simek@...inx.com>,
Rajan Vaja <rajanv@...inx.com>, Jolly Shah <jollys@...inx.com>,
linux-fpga@...r.kernel.org,
Devicetree List <devicetree@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
kishore m <chinnikishore369@...il.com>
Subject: Re: [PATCH v3 3/3] fpga manager: Adding FPGA Manager support for
Xilinx zynqmp
On Tue, Feb 12, 2019 at 5:06 AM Moritz Fischer <moritz.fischer@...us.com> wrote:
Hi Nava,
> > + mgr = fpga_mgr_create(dev, "Xilinx ZynqMP FPGA Manager",
> > + &zynqmp_fpga_ops, priv);
Please use the new devm_fpga_mgr_create()
> > + if (!mgr)
> > + return -ENOMEM;
> > +
> > + platform_set_drvdata(pdev, mgr);
> > +
> > + err = fpga_mgr_register(mgr);
> vs here.
> > + if (err) {
> > + dev_err(dev, "unable to register FPGA manager");
> > + fpga_mgr_free(mgr);
With devm_fpga_mgr_create(), this fpga_mgr_free() can go away.
> > + return err;
> > + }
> > +
> > + return 0;
Thanks,
Alan
Powered by blists - more mailing lists