On Mon, Jul 25, 2011 at 04:25:33PM -0700, Greg KH wrote:
On Mon, Jul 25, 2011 at 07:26:28PM +0100, Mark Brown wrote:
quoted
They're asking if drivers should set driver_data to NULL while
unbinding, which always struck me as a waste of time given that
nothing except a currently bound driver should be using driver_data.
Yeah, it's not needed, as nothing should rely on that. However it's
also not hurting anything either.
Every time I see it it always sets off a red flag, partly because we
shouldn't need to bother at all and partly because to the extent it's
valuable it's not something we should be doing on a driver by driver or
even subsystem by subsystem basis.