On 05/01/2012 04:50 PM, Jonathan Cameron wrote: > On 5/1/2012 3:15 PM, Lars-Peter Clausen wrote: >> On 05/01/2012 04:05 PM, Lars-Peter Clausen wrote: >> [...] >> Ah, seems as if the refcounting infrastructure is already ready for >> use after >> we have called device_initialize, so the above plan should work quite >> well. >> Call device_del in iio_device_unregister and device_put in >> iio_device_free and >> free the struct in the release callback. > That makes sense given it just splits the two parts of device_unregister > apart. > Don't suppose you want to do the patch? I could write the patch, but I don't have a setup at hand right now where I could test it, so this would have to wait until next week. I wouldn't mind if you took care of it though :) - Lars -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html