Re: [PATCH] misc: Implement devm_misc_register

From: Greg Kroah-Hartman
Date: Tue May 09 2017 - 01:37:58 EST


On Tue, May 09, 2017 at 02:27:48AM +0000, Gregory Fong wrote:
> Add device managed devm_misc_register() to allow simplifying some
> miscdevice code.
>
> Signed-off-by: Gregory Fong <gregory.fong@xxxxxxxxxxxxxxx>
> ---
> This seemed like it would be handy for removing a large chunk of the cleanup
> code in various miscdevice users. Let me know whether you think it'd be worth
> going ahead changing this throughout the codebase where appropriate.

I'd like to see how this is actually used before accepting it, as we
don't like adding apis that do not have any users. So care to make this
a patch series, first one with this change, and the rest converting some
drivers to use it?

thanks,

greg k-h