# Re: \[PATCH\] drivers:input:set driver data to NULL for pcap\_keys

- From: Mark Brown \<hidden\>
- Date: 2011-07-26 08:54:38 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2011/07/8917309
- Thread: https://ratatoskr.run/linux-input/2011/07/8917274/t.md

```text
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:

> > 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.
```
