diff options
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
-rw-r--r-- | drivers/scsi/scsi_debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 27c633f55794..6eebd0bbe8a8 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
@@ -2508,7 +2508,7 @@ static void pseudo_0_release(struct device *dev) | |||
2508 | } | 2508 | } |
2509 | 2509 | ||
2510 | static struct device pseudo_primary = { | 2510 | static struct device pseudo_primary = { |
2511 | .bus_id = "pseudo_0", | 2511 | .init_name = "pseudo_0", |
2512 | .release = pseudo_0_release, | 2512 | .release = pseudo_0_release, |
2513 | }; | 2513 | }; |
2514 | 2514 | ||
@@ -2680,7 +2680,7 @@ static int sdebug_add_adapter(void) | |||
2680 | sdbg_host->dev.bus = &pseudo_lld_bus; | 2680 | sdbg_host->dev.bus = &pseudo_lld_bus; |
2681 | sdbg_host->dev.parent = &pseudo_primary; | 2681 | sdbg_host->dev.parent = &pseudo_primary; |
2682 | sdbg_host->dev.release = &sdebug_release_adapter; | 2682 | sdbg_host->dev.release = &sdebug_release_adapter; |
2683 | sprintf(sdbg_host->dev.bus_id, "adapter%d", scsi_debug_add_host); | 2683 | dev_set_name(&sdbg_host->dev, "adapter%d", scsi_debug_add_host); |
2684 | 2684 | ||
2685 | error = device_register(&sdbg_host->dev); | 2685 | error = device_register(&sdbg_host->dev); |
2686 | 2686 | ||