Re: [PATCH] driver core: Move driver_data back to struct device

2014-04-10 Thread Greg Kroah-Hartman
On Thu, Apr 10, 2014 at 09:50:14AM +0200, Jean Delvare wrote: > Hi Greg, > > On Mon, 7 Apr 2014 13:58:15 -0700, Greg Kroah-Hartman wrote: > > On Mon, Apr 07, 2014 at 10:53:22AM +0200, Jean Delvare wrote: > > > Having to allocate memory as part of dev_set_drvdata() is a problem > > > because that m

Re: [PATCH] driver core: Move driver_data back to struct device

2014-04-10 Thread Jean Delvare
Hi Greg, On Mon, 7 Apr 2014 13:58:15 -0700, Greg Kroah-Hartman wrote: > On Mon, Apr 07, 2014 at 10:53:22AM +0200, Jean Delvare wrote: > > Having to allocate memory as part of dev_set_drvdata() is a problem > > because that memory may never get freed if the device itself is not > > created. So move

Re: [PATCH] driver core: Move driver_data back to struct device

2014-04-07 Thread Greg Kroah-Hartman
On Mon, Apr 07, 2014 at 10:53:22AM +0200, Jean Delvare wrote: > Having to allocate memory as part of dev_set_drvdata() is a problem > because that memory may never get freed if the device itself is not > created. So move driver_data back to struct device. > > This is a partial revert of commit b40

[PATCH] driver core: Move driver_data back to struct device

2014-04-07 Thread Jean Delvare
Having to allocate memory as part of dev_set_drvdata() is a problem because that memory may never get freed if the device itself is not created. So move driver_data back to struct device. This is a partial revert of commit b4028437. Signed-off-by: Jean Delvare Cc: Greg Kroah-Hartman --- Greg, w