kernels/linux-2.4.0/kernel/pm.c
/**
 *	pm_unregister -  unregister a device with power management
 *	@dev: device to unregister
 *
 *	Remove a device from the power management notification lists. The
 *	dev passed must be a handle previously returned by pm_register.
 */
unregister a device with power management
@dev: device to unregister

Remove a device from the power management notification lists. The
dev passed must be a handle previously returned by pm_register.
unregister a device with power management @dev : device to unregister Remove a device from the power management notification lists . The dev passed must be a handle previously returned by pm_register .
void pm_unregister(struct pm_dev *dev)
{
	if (dev) {
		unsigned long flags;
		spin_lock_irqsave(&pm_devs_lock, flags);
		list_del(&dev->entry);
		spin_unlock_irqrestore(&pm_devs_lock, flags);
		kfree(dev);
	}
}
void pm_unregister ( struct pm_dev * dev ) { if ( dev ) { unsigned long flags ; spin_lock_irqsave ( & pm_devs_lock , flags ) ; list_del ( & dev -> entry ) ; spin_unlock_irqrestore ( & pm_devs_lock , flags ) ; kfree ( dev ) ; } }
pm_unregister -  unregister a device with power management
      @dev: device to unregister
pm_unregister - unregister a device with power management @dev : device to unregister