/* pnp_remove_card_device- removes a device from the specified card @dev: pointer to the device to remove  */
void pnp_remove_card_device(struct pnp_dev *dev)
/* pnp_remove_card_device- removes a device from the specified card @dev: pointer to the device to remove  */
void pnp_remove_card_device(struct pnp_dev *dev)
{
	spin_lock(&pnp_lock);
	dev->card = NULL;
	list_del(&dev->card_list);
	spin_unlock(&pnp_lock);
	__pnp_remove_device(dev);
}