/* inform the correct pnp protocol so that resources can be used by other devices  */
int pnp_disable_dev(struct pnp_dev *dev)
/* inform the correct pnp protocol so that resources can be used by other devices  */
int pnp_disable_dev(struct pnp_dev *dev)
{
	int error;
	if (!dev->active)
		return 0;
	error = pnp_stop_dev(dev);
	if (error)
		return error;
	dev->active = 0;
	mutex_lock(&pnp_res_mutex);
	pnp_clean_resource_table(dev);
	mutex_unlock(&pnp_res_mutex);
	return 0;
}