/* cpuidle_unregister_driver - unregisters a driver @drv: the driver  */
void cpuidle_unregister_driver(struct cpuidle_driver *drv)
/* cpuidle_unregister_driver - unregisters a driver @drv: the driver  */
void cpuidle_unregister_driver(struct cpuidle_driver *drv)
{
	if (!drv)
		return;
	spin_lock(&cpuidle_driver_lock);
	cpuidle_curr_driver = NULL;
	spin_unlock(&cpuidle_driver_lock);
}