Files
android_kernel_xiaomi_sm8450/drivers/scsi
Matthew Wilcox 3ac709c113 [SCSI] a4000t, zorro7xx, mvme16x, bvme6000,sim710: xxx_device_remove seems buggy
Fix drivers misusing dev_to_shost

Some drivers were using dev_to_shost to go from a struct device to the
corresponding shost.  Unfortunately, dev_to_shost only looks up the tree
to find an shost (it's designed to go from a scsi_device or a
scsi_target to the parent scsi_host), and these drivers were calling it
with the parent of the scsi_host.

I've fixed this by saving a pointer to the Scsi_Host in the drvdata,
which matches what most scsi drivers do.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-07-18 11:17:57 -05:00
..
2007-04-01 10:10:04 -05:00
2007-07-18 11:16:54 -05:00
2006-01-01 22:21:50 +01:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2007-05-27 15:05:10 -05:00
2007-05-06 09:33:11 -05:00
2005-11-09 15:44:09 -05:00
2007-05-31 17:30:04 -04:00
2006-08-06 15:59:26 -05:00
2005-11-09 15:48:20 -05:00
2006-11-15 16:41:27 -06:00
2006-09-12 17:12:31 -05:00
2006-11-22 14:57:56 +00:00
2007-05-24 09:14:41 -05:00
2007-05-31 17:30:04 -04:00
2007-07-18 11:16:54 -05:00
2006-09-12 17:12:31 -05:00
2006-11-30 05:24:39 +01:00
2007-05-24 09:13:25 -05:00
2007-01-27 09:28:58 -06:00
2007-04-17 18:15:04 -04:00
2007-02-09 09:14:07 -08:00
2005-11-09 15:48:20 -05:00
2007-07-18 11:16:32 -05:00
2007-07-18 11:16:32 -05:00
2007-07-18 11:16:32 -05:00
2007-05-28 09:08:32 -05:00
2007-07-14 19:12:15 -05:00
2007-07-18 11:16:32 -05:00
2006-03-23 07:38:09 -08:00
2007-05-31 17:30:04 -04:00
2006-11-15 16:43:50 -06:00
2007-07-18 11:16:38 -05:00