Re: [PATCH] Minor change to platform_device_register_simple prototype

Dmitry Torokhov
2005-12-08T21:06:40Z

On 12/8/05, Jean Delvare <khali@linux-fr.org> wrote:
> Hi Russell,
>
> > On Wed, Dec 07, 2005 at 03:06:15PM -0800, Greg KH wrote:
> > > Ok, that's fine with me. Russell, any objections?
> >
> > None what so ever - that's mostly what I envisioned with the patch
> > with the _del method. However, I didn't have an existing user for it.
>
> Do you mean you have the code already? If it is so, could you please
> provide a patch Dmitry and I can give a try to?
>

I have the patch (my version anyway), I will send it out tonight.

> If not, I am willing to give it a try, if you provide some guidance. I
> think I understand that platform_device_del would be the first half of
> platform_device_unregister, but do we then want to rebuild
> platform_device_unregister on top of platform_device_del so as to avoid
> code duplication, or not?
>

Yes, _unregister is changed to be smply call to _del + _put.

--
Dmitry