mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04: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/[email protected] Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
b6ce6fb121
commit
0ee6211408
1 changed files with 1 additions and 3 deletions
|
|
@ -66,10 +66,8 @@ static int snirm710_probe(struct platform_device *dev)
|
|||
|
||||
base = res->start;
|
||||
hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
|
||||
if (!hostdata) {
|
||||
dev_printk(KERN_ERR, dev, "Failed to allocate host data\n");
|
||||
if (!hostdata)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
hostdata->dev = &dev->dev;
|
||||
dma_set_mask(&dev->dev, DMA_BIT_MASK(32));
|
||||
|
|
|
|||
Loading…
Reference in a new issue