diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index b498f2740100..be3a2797dac4 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -460,20 +460,6 @@ __uml_help(udb_setup, | |||
460 | " in the boot output.\n\n" | 460 | " in the boot output.\n\n" |
461 | ); | 461 | ); |
462 | 462 | ||
463 | static int fakehd_set = 0; | ||
464 | static int fakehd(char *str) | ||
465 | { | ||
466 | printk(KERN_INFO "fakehd : Changing ubd name to \"hd\".\n"); | ||
467 | fakehd_set = 1; | ||
468 | return 1; | ||
469 | } | ||
470 | |||
471 | __setup("fakehd", fakehd); | ||
472 | __uml_help(fakehd, | ||
473 | "fakehd\n" | ||
474 | " Change the ubd device name to \"hd\".\n\n" | ||
475 | ); | ||
476 | |||
477 | static void do_ubd_request(struct request_queue * q); | 463 | static void do_ubd_request(struct request_queue * q); |
478 | 464 | ||
479 | /* Only changed by ubd_init, which is an initcall. */ | 465 | /* Only changed by ubd_init, which is an initcall. */ |
@@ -722,8 +708,10 @@ static int ubd_add(int n, char **error_out) | |||
722 | ubd_disk_register(fake_major, ubd_dev->size, n, | 708 | ubd_disk_register(fake_major, ubd_dev->size, n, |
723 | &fake_gendisk[n]); | 709 | &fake_gendisk[n]); |
724 | 710 | ||
725 | /* perhaps this should also be under the "if (fake_major)" above */ | 711 | /* |
726 | /* using the fake_disk->disk_name and also the fakehd_set name */ | 712 | * Perhaps this should also be under the "if (fake_major)" above |
713 | * using the fake_disk->disk_name | ||
714 | */ | ||
727 | if (fake_ide) | 715 | if (fake_ide) |
728 | make_ide_entries(ubd_gendisk[n]->disk_name); | 716 | make_ide_entries(ubd_gendisk[n]->disk_name); |
729 | 717 | ||