mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
scsi: sni_53c710: fix compilation error
Drop out memory dev_printk() with wrong device pointer argument. [mkp: typo] Link: https://lore.kernel.org/r/20191009151118.32350-1-tbogendoerfer@suse.de Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
b6ce6fb121
commit
0ee6211408
@ -66,10 +66,8 @@ static int snirm710_probe(struct platform_device *dev)
|
|||||||
|
|
||||||
base = res->start;
|
base = res->start;
|
||||||
hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
|
hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
|
||||||
if (!hostdata) {
|
if (!hostdata)
|
||||||
dev_printk(KERN_ERR, dev, "Failed to allocate host data\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
hostdata->dev = &dev->dev;
|
hostdata->dev = &dev->dev;
|
||||||
dma_set_mask(&dev->dev, DMA_BIT_MASK(32));
|
dma_set_mask(&dev->dev, DMA_BIT_MASK(32));
|
||||||
|
Loading…
Reference in New Issue
Block a user