scsi: jazz_esp, sun3x_esp: Pass struct device pointer in dma calls
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 7 Mar 2018 06:56:41 +0000 (17:56 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Mar 2018 02:05:43 +0000 (22:05 -0400)
commite32ec6579f5b3134cb27cc063c17da0bb8cd29c7
treeee33cc79246b5853cb9e0b2c0717da89d01e7684
parent40ec66b1bf4352315025b821f7a5aead3d8ea645
scsi: jazz_esp, sun3x_esp: Pass struct device pointer in dma calls

In jazz_esp and sun3x_esp, the esp_driver_ops methods pass esp->dev in
dma api calls as if it was a pointer to a struct device. But it actually
points to a struct platform_device. Fix this.

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/jazz_esp.c
drivers/scsi/sun3x_esp.c