[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2E89032DDAA8B9408CB92943514A0337AB53E980@SW-EX-MBX01.diasemi.com>
Date: Mon, 2 Mar 2015 10:58:48 +0000
From: "Opensource [Adam Thomson]" <Adam.Thomson.Opensource@...semi.com>
To: Jonathan Cameron <jic23@...nel.org>,
"Opensource [Adam Thomson]" <Adam.Thomson.Opensource@...semi.com>,
Lee Jones <lee.jones@...aro.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
Hartmut Knaack <knaack.h@....de>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
Sebastian Reichel <sre@...nel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
"David Woodhouse" <dwmw2@...radead.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
"Grant Likely" <grant.likely@...aro.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
"Joe Perches" <joe@...ches.com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Support Opensource" <Support.Opensource@...semi.com>
Subject: RE: [PATCH v7 5/7] power: Add support for DA9150 Charger
On February 25, 2015 12:11, Jonathan Cameron wrote:
> > +static int da9150_charger_remove(struct platform_device *pdev)
> > +{
> > + struct da9150_charger *charger = platform_get_drvdata(pdev);
> > + int irq;
> > +
> > + /* Make sure IRQs are released before unregistering power supplies */
> > + irq = platform_get_irq_byname(pdev, "CHG_VBUS");
> > + free_irq(irq, charger);
> I'd use your unregister_irq function here as well. Better than open
> coding the same thing again. (more obviously correct as well as the
> error condition unwinding above then looks just like we have here).
Fair point. Will update that when I start on the additional modules I need to
submit. Thanks.
Powered by blists - more mailing lists