mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] devfs: Remove devfs_remove() function from the kernel tree
Removes the devfs_remove() function and all callers of it. Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
7c69ef7974
commit
8ab5e4c15b
47 changed files with 9 additions and 161 deletions
|
|
@ -74,7 +74,6 @@ static int dm_hash_init(void)
|
|||
static void dm_hash_exit(void)
|
||||
{
|
||||
dm_hash_remove_all(0);
|
||||
devfs_remove(DM_DIR);
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
|
|
@ -170,15 +169,6 @@ static void free_cell(struct hash_cell *hc)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* devfs stuff.
|
||||
*/
|
||||
static int unregister_with_devfs(struct hash_cell *hc)
|
||||
{
|
||||
devfs_remove(DM_DIR"/%s", hc->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* The kdev_t and uuid of a device can never change once it is
|
||||
* initially inserted.
|
||||
|
|
@ -234,7 +224,6 @@ static void __hash_remove(struct hash_cell *hc)
|
|||
/* remove from the dev hash */
|
||||
list_del(&hc->uuid_list);
|
||||
list_del(&hc->name_list);
|
||||
unregister_with_devfs(hc);
|
||||
dm_set_mdptr(hc->md, NULL);
|
||||
|
||||
table = dm_get_table(hc->md);
|
||||
|
|
@ -330,8 +319,6 @@ static int dm_hash_rename(const char *old, const char *new)
|
|||
/*
|
||||
* rename and move the name cell.
|
||||
*/
|
||||
unregister_with_devfs(hc);
|
||||
|
||||
list_del(&hc->name_list);
|
||||
old_name = hc->name;
|
||||
hc->name = new_name;
|
||||
|
|
|
|||
|
|
@ -5611,15 +5611,9 @@ static __exit void md_exit(void)
|
|||
{
|
||||
mddev_t *mddev;
|
||||
struct list_head *tmp;
|
||||
int i;
|
||||
|
||||
blk_unregister_region(MKDEV(MAJOR_NR,0), MAX_MD_DEVS);
|
||||
blk_unregister_region(MKDEV(mdp_major,0), MAX_MD_DEVS << MdpMinorShift);
|
||||
for (i=0; i < MAX_MD_DEVS; i++)
|
||||
devfs_remove("md/%d", i);
|
||||
for (i=0; i < MAX_MD_DEVS; i++)
|
||||
devfs_remove("md/d%d", i);
|
||||
|
||||
devfs_remove("md");
|
||||
|
||||
unregister_blkdev(MAJOR_NR,"md");
|
||||
unregister_blkdev(mdp_major, "mdp");
|
||||
|
|
|
|||
Loading…
Reference in a new issue