[PATCH] drm: convert DT component matching to component_match_add_release()
Russell King - ARM Linux
linux at armlinux.org.uk
Fri Jun 3 03:36:33 PDT 2016
On Fri, Jun 03, 2016 at 10:40:48AM +0100, Liviu Dudau wrote:
> On Fri, Jun 03, 2016 at 08:58:10AM +0100, Russell King wrote:
> > Convert DT component matching to use component_match_add_release().
> Hi Russell,
> Any reason for not keeping the component_match_add() calls in the drivers?
Sorry, I don't understand your comment.
If we kept component_match_add() in these drivers, then this patch
would not exist, because there wouldn't be any changes to the drivers.
> Planning to remove it?
Possibly in the longer term, but at the moment there are drivers where
the match data that is passed does not need any release functionality
eg, data allocated with devm_k*alloc(), or
component_match_add(dev->parent, match, dss_component_compare, dev);
There are some new cases that need converting which have cropped up
during the last merge window, and I expect this to be an on-going
educational point for driver authors, so I'm not too bothered about
capturing all existing cases in this patch.
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
More information about the Linux-rockchip