Commit 0ee62114 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by Martin K. Petersen

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.deSigned-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b6ce6fb1
...@@ -66,10 +66,8 @@ static int snirm710_probe(struct platform_device *dev) ...@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment