[SCSI] make supported_mode default to initiator.
authorJames Bottomley <James.Bottomley@steeleye.com>
Wed, 26 Sep 2007 03:45:53 +0000 (22:45 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Thu, 18 Oct 2007 01:56:12 +0000 (21:56 -0400)
commit7a39ac3f25bef018862a991d754aff681c019127
treeddbe694e36e2d2fb4648c0775e8f152afcfa9fe9
parent645a0c6c48e0122f4212e3957e73bddc18788d99
[SCSI] make supported_mode default to initiator.

if shost->supported mode is zero (i.e. MODE_UNKNOWN) show it as
initiator (it's obviously an unconverted driver that won't do target).

Acked-by: FUJITA Tomonori <tomof@acm.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/hosts.c
drivers/scsi/scsi_sysfs.c