On Thu, 5 Apr 2012, David Young wrote: > On Wed, Apr 04, 2012 at 07:25:55AM +0100, Iain Hibbert wrote: > > Hi > > > > Regarding pmf(9) API, is it safe to call pmf_device_deregister() if the > > device was not successfully registered as a power handler? The > > documentation does not mention this (though the code looks as if that > > would work fine), nor the device_pmf_is_registered() function which may > > not be actually required? Some driver detach functions use it and some do > > not.. > > I think that drivers should never call device_pmf_is_registered(), but > sometimes they do anyway.
Right thanks for confirmation I was looking and actually there are not many uses after all; I just cleaned a few in dev/usb, am looking at midi now but thats a little twisty iain