mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +00:00
parisc: fix dev_printk() compile warnings for accessing a device struct
Fix compile warnings: drivers/scsi/zalon.c: In function `zalon_probe': drivers/scsi/zalon.c:140: warning: passing arg 1 of `dev_driver_string' from incompatible pointer type drivers/scsi/zalon.c:140: warning: passing arg 1 of `dev_name' from incompatible pointer type Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
parent
ddd1f6c66d
commit
7f384ce780
@ -103,7 +103,7 @@ lasi700_probe(struct parisc_device *dev)
|
|||||||
|
|
||||||
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");
|
dev_printk(KERN_ERR, &dev->dev, "Failed to allocate host data\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ zalon_probe(struct parisc_device *dev)
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (request_irq(dev->irq, ncr53c8xx_intr, IRQF_SHARED, "zalon", host)) {
|
if (request_irq(dev->irq, ncr53c8xx_intr, IRQF_SHARED, "zalon", host)) {
|
||||||
dev_printk(KERN_ERR, dev, "irq problem with %d, detaching\n ",
|
dev_printk(KERN_ERR, &dev->dev, "irq problem with %d, detaching\n ",
|
||||||
dev->irq);
|
dev->irq);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user