/* Check if xpram setup changed between suspend and resume.  */
static int xpram_restore(struct device *dev)
/* Check if xpram setup changed between suspend and resume.  */
static int xpram_restore(struct device *dev)
{
	if (!xpram_pages)
		return 0;
	if (xpram_present() != 0)
		xpram_resume_error("xpram disappeared");
	if (xpram_pages != xpram_highest_page_index() + 1)
		xpram_resume_error("Size of xpram changed");
	return 0;
}