diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2010-09-07 00:24:28 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-09-17 02:54:08 (GMT) |
commit | 9b906779568f009b53254a15b283b53ae4570b93 (patch) | |
tree | d5f625a6c7a032fc299510c29d6fd3ce04710d38 /drivers/scsi/aacraid/commsup.c | |
parent | 78d16341facf829a71b6f7c68ec5511b9c168060 (diff) | |
download | linux-9b906779568f009b53254a15b283b53ae4570b93.tar.xz |
[SCSI] scsi_debug: Convert to use root_device_register() and root_device_unregister()
This patch updates the scsi_debug virtual LLD to use
root_device_register() and root_device_unregister() from
include/linux/device.h instead of device_register() and
device_unregister() respectively within scsi_debug_init() and
scsi_debug_exit() This simply involved converting the static struct
device pseudo_primary into a pointer that is setup by the call to
root_device_register().
This patch also contains the correct IS_ERR() conditional check of
root_device_register() from within scsi_debug_init().
Thanks to Richard Sharpe and Dmitry Torokhov for their help with this
item.
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
0 files changed, 0 insertions, 0 deletions