Daniel Vetter daniel@ffwll.ch writes:
On Thu, Sep 24, 2015 at 7:02 PM, Thierry Reding thierry.reding@gmail.com wrote:
From: Thierry Reding treding@nvidia.com
Some modules register several sub-drivers. Provide a helper that makes it easy to register and unregister a list of sub-drivers, as well as unwind properly on error.
Cc: Greg Kroah-Hartman gregkh@linuxfoundation.org Signed-off-by: Thierry Reding treding@nvidia.com
I raised this already on irc but let's do it here too for the record: Eric Anholt has a very similar thing (but in drm only) with the addition of also integrating with the component framework:
http://lists.freedesktop.org/archives/dri-devel/2015-September/090449.html
Having something that works for everyone (so includes msm and can be used for vc4 too) would be great. Adding Eric.
I'm not sure if I should be providing a Reviewed-by here, but I like this patch. It obsoletes part of my patch series, and I look forward to using it in my driver.