From: FUJITA Tomonori Date: Thu, 20 Mar 2008 02:09:16 +0000 (+0900) Subject: [SCSI] scsi_debug: create new scsi_debug devices at a single place X-Git-Tag: v2.6.26-rc1~1140^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cb2fc06107fe343a9488b32ddf3d9b4596b7090;p=pandora-kernel.git [SCSI] scsi_debug: create new scsi_debug devices at a single place Two functions, sdebug_add_adapter and devInfoReg, creates new scsi_debug devices. To simplify the code, this patch adds a new helper function to create new scsi_debug devices (sdebug_device_create) and converts both functions to use it. I plan to add more to scsi_debug devices (e.g. using a thread for a scsi_debug device for scalability testings). This patch enable me to add such to just the new helper function instead of touching two functions, sdebug_add_adapter and devInfoReg. Signed-off-by: FUJITA Tomonori Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed