Re: Fwd: Re: unbind/bind w1-gpio with device tree produce a crash

2015-03-05 Thread Ingo Flaschberger
Dear Markus, Am 05.03.2015 um 08:35 schrieb Markus Pargmann: Good point. The easy way to solve this may be to check in the remove function if the devicetree node for this device is available. If it is, we know that platform_data was allocated with devm_* and we can set platform_data to NULL. I

Re: Fwd: Re: unbind/bind w1-gpio with device tree produce a crash

2015-03-04 Thread Markus Pargmann
Hi Ingo, On Thu, Mar 05, 2015 at 03:56:20AM +0100, Ingo Flaschberger wrote: > Dear Markus, > > as I get no answer at the kernel mailinglist: > your patch to use devm_kzalloc instead of kzalloc produce driver crashes > when the 1wire bus is unbound and bound again (see details below). > > What do