From: Nicholas Bellinger Date: Tue, 7 Sep 2010 00:24:28 +0000 (-0700) Subject: [SCSI] scsi_debug: Convert to use root_device_register() and root_device_unregister() X-Git-Tag: v2.6.37-rc1~159^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b906779568f009b53254a15b283b53ae4570b93;p=pandora-kernel.git [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 Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed