[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_Jsq+geRqdkDwn6Coukin5EeA2aZreK81KpHx+u0SDkgoJvQ@mail.gmail.com>
Date: Thu, 12 Jan 2017 13:53:15 -0600
From: Rob Herring <robh@...nel.org>
To: Pavel Machek <pavel@....cz>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Marcel Holtmann <marcel@...tmann.org>,
Jiri Slaby <jslaby@...e.com>,
Sebastian Reichel <sre@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
"Dr . H . Nikolaus Schaller" <hns@...delico.com>,
Peter Hurley <peter@...leysoftware.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Alan Cox <gnomes@...rguk.ukuu.org.uk>,
Loic Poulain <loic.poulain@...el.com>,
NeilBrown <neil@...wn.name>,
Linus Walleij <linus.walleij@...aro.org>,
"open list:BLUETOOTH DRIVERS" <linux-bluetooth@...r.kernel.org>,
"linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 7/9] serdev: Introduce new bus for serial attached devices
On Tue, Jan 10, 2017 at 3:46 PM, Pavel Machek <pavel@....cz> wrote:
> Hi!
>
>> +static void serdev_ctrl_release(struct device *dev)
>> +{
>> + struct serdev_controller *ctrl = to_serdev_controller(dev);
>> + ida_simple_remove(&ctrl_ida, ctrl->nr);
>> + kfree(ctrl);
>> +}
>
> Would it make sense to do something like to_serdev_controller(dev) =
> NULL; there?
That would be the same as adding "ctrl = NULL;" which would be
pointless. The struct device is embedded into serdev_controller.
Rob
Powered by blists - more mailing lists