/* Unregisters a node device @node. All the devices on the node must be unregistered before calling this function.  */
void unregister_node(struct node *node)
/* Unregisters a node device @node. All the devices on the node must be unregistered before calling this function.  */
void unregister_node(struct node *node)
{
	sysdev_remove_file(&node->sysdev, &attr_cpumap);
	sysdev_remove_file(&node->sysdev, &attr_cpulist);
	sysdev_remove_file(&node->sysdev, &attr_meminfo);
	sysdev_remove_file(&node->sysdev, &attr_numastat);
	sysdev_remove_file(&node->sysdev, &attr_distance);
	scan_unevictable_unregister_node(node);
	hugetlb_unregister_node(node);
	sysdev_unregister(&node->sysdev);
}