/* Only called on rmmod for each platform device, since they are not hot-pluggable. Now we know, that all our users - hosts and devices have been unloaded already  */
static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev)
/* Only called on rmmod for each platform device, since they are not hot-pluggable. Now we know, that all our users - hosts and devices have been unloaded already  */
static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev)
{
	struct soc_camera_device *icd = platform_get_drvdata(pdev);
	if (!icd)
		return -EINVAL;
	soc_camera_device_unregister(icd);
	kfree(icd);
	return 0;
}