/* register_memory - Setup a sysfs device for a memory block  */
static int register_memory(struct memory_block *memory, struct mem_section *section)
/* register_memory - Setup a sysfs device for a memory block  */
static int register_memory(struct memory_block *memory, struct mem_section *section)
{
	int error;
	memory->sysdev.cls = &memory_sysdev_class;
	memory->sysdev.id = __section_nr(section);
	error = sysdev_register(&memory->sysdev);
	return error;
}