forked from Minki/linux
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>
This commit is contained in:
parent
40ec66b1bf
commit
e32ec6579f
@ -147,7 +147,7 @@ static int esp_jazz_probe(struct platform_device *dev)
|
|||||||
esp = shost_priv(host);
|
esp = shost_priv(host);
|
||||||
|
|
||||||
esp->host = host;
|
esp->host = host;
|
||||||
esp->dev = dev;
|
esp->dev = &dev->dev;
|
||||||
esp->ops = &jazz_esp_ops;
|
esp->ops = &jazz_esp_ops;
|
||||||
|
|
||||||
res = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
||||||
|
@ -210,7 +210,7 @@ static int esp_sun3x_probe(struct platform_device *dev)
|
|||||||
esp = shost_priv(host);
|
esp = shost_priv(host);
|
||||||
|
|
||||||
esp->host = host;
|
esp->host = host;
|
||||||
esp->dev = dev;
|
esp->dev = &dev->dev;
|
||||||
esp->ops = &sun3x_esp_ops;
|
esp->ops = &sun3x_esp_ops;
|
||||||
|
|
||||||
res = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user