mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] devfs: Remove devfs_mk_bdev() function from the kernel tree
Removes the devfs_mk_bdev() function and all callers of it. Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
79021a625c
commit
1a715c5cf9
5 changed files with 0 additions and 54 deletions
|
|
@ -173,16 +173,6 @@ static void free_cell(struct hash_cell *hc)
|
|||
/*
|
||||
* devfs stuff.
|
||||
*/
|
||||
static int register_with_devfs(struct hash_cell *hc)
|
||||
{
|
||||
struct gendisk *disk = dm_disk(hc->md);
|
||||
|
||||
devfs_mk_bdev(MKDEV(disk->major, disk->first_minor),
|
||||
S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP,
|
||||
DM_DIR "/%s", hc->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int unregister_with_devfs(struct hash_cell *hc)
|
||||
{
|
||||
devfs_remove(DM_DIR"/%s", hc->name);
|
||||
|
|
@ -225,7 +215,6 @@ static int dm_hash_insert(const char *name, const char *uuid, struct mapped_devi
|
|||
}
|
||||
list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid));
|
||||
}
|
||||
register_with_devfs(cell);
|
||||
dm_get(md);
|
||||
dm_set_mdptr(md, cell);
|
||||
up_write(&_hash_lock);
|
||||
|
|
@ -348,9 +337,6 @@ static int dm_hash_rename(const char *old, const char *new)
|
|||
hc->name = new_name;
|
||||
list_add(&hc->name_list, _name_buckets + hash_str(new_name));
|
||||
|
||||
/* rename the device node in devfs */
|
||||
register_with_devfs(hc);
|
||||
|
||||
/*
|
||||
* Wake up any dm event waiters.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -5538,8 +5538,6 @@ static void md_geninit(void)
|
|||
|
||||
static int __init md_init(void)
|
||||
{
|
||||
int minor;
|
||||
|
||||
printk(KERN_INFO "md: md driver %d.%d.%d MAX_MD_DEVS=%d,"
|
||||
" MD_SB_DISKS=%d\n",
|
||||
MD_MAJOR_VERSION, MD_MINOR_VERSION,
|
||||
|
|
@ -5558,17 +5556,6 @@ static int __init md_init(void)
|
|||
blk_register_region(MKDEV(mdp_major, 0), MAX_MD_DEVS<<MdpMinorShift, THIS_MODULE,
|
||||
md_probe, NULL, NULL);
|
||||
|
||||
for (minor=0; minor < MAX_MD_DEVS; ++minor)
|
||||
devfs_mk_bdev(MKDEV(MAJOR_NR, minor),
|
||||
S_IFBLK|S_IRUSR|S_IWUSR,
|
||||
"md/%d", minor);
|
||||
|
||||
for (minor=0; minor < MAX_MD_DEVS; ++minor)
|
||||
devfs_mk_bdev(MKDEV(mdp_major, minor<<MdpMinorShift),
|
||||
S_IFBLK|S_IRUSR|S_IWUSR,
|
||||
"md/mdp%d", minor);
|
||||
|
||||
|
||||
register_reboot_notifier(&md_notifier);
|
||||
raid_table_header = register_sysctl_table(raid_root_table, 1);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue