On 24 September 2013 18:43, Jonathan Cameron <jic23@xxxxxxxxxx> wrote: > > > Sachin Kamat <sachin.kamat@xxxxxxxxxx> wrote: >>With the conversion of iio drivers to use device managed APIs, most of >>the >>drivers now have a remove function with only the >>iio_device_unregister() >>call. > I am not sure this is a good idea if there is anything else in those functions. The unregister is responsible for marking the device as going away so until it has happened all interfaces should still work. This will be done in only those drivers whose remove function contains nothing other than the unregister call thereby removing it altogether or where unregister happens to be the last operation in remove. > In at least two of this small set that is not the case... I had added these 2 purposefully to get your feedback as I wasn't fully sure if disabling regulator would cause any ordering related issues. -- With warm regards, Sachin -- 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