Commit 4eb192d2 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] pciba cleanup

	switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent f88f81ef
......@@ -281,10 +281,6 @@ free_nodes(void)
}
#endif
static devfs_handle_t pciba_devfs_handle;
#if !defined(CONFIG_IA64_SGI_SN1)
static status __init
......@@ -296,8 +292,7 @@ register_with_devfs(void)
TRACE();
pciba_devfs_handle = devfs_mk_dir(NULL, "pci", NULL);
if (pciba_devfs_handle == NULL)
if (!devfs_mk_dir(NULL, "pci", NULL))
return failure;
/* FIXME: don't forget /dev/pci/mem & /dev/pci/io */
......@@ -314,7 +309,7 @@ register_with_devfs(void)
return failure;
if (register_pci_device(device_dir_handle, dev) == failure) {
devfs_unregister(pciba_devfs_handle);
devfs_remove("pci");
return failure;
}
}
......@@ -344,7 +339,7 @@ register_with_devfs(void)
return failure;
if (register_pci_device(device_dir_handle, dev) == failure) {
devfs_unregister(pciba_devfs_handle);
devfs_remove("pci");
return failure;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment