physmap without MTD partitions

Jörn Engel joern at logfs.org
Mon Jun 16 05:50:47 EDT 2008


On Sat, 7 June 2008 17:01:41 +0200, Robert Jarzmik wrote:
> @@ -213,8 +214,10 @@ static int physmap_flash_resume(struct platform_device *dev)
>  	struct physmap_flash_info *info = platform_get_drvdata(dev);
>  	int i;
>  
> +	return 0;

Is this bit leftover from debugging?

>  	for (i = 0; i < MAX_RESOURCES && info->mtd[i]; i++)
> -		info->mtd[i]->resume(info->mtd[i]);
> +		if (info->mtd[i]->resume)
> +			info->mtd[i]->resume(info->mtd[i]);
>  
>  	return 0;
>  }

Jörn

-- 
It's just what we asked for, but not what we want!
-- anonymous



More information about the linux-mtd mailing list