Skip to content

Commit

Permalink
parisc: fix dev_printk() compile warnings for accessing a device struct
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helge Deller authored and Kyle McMartin committed Mar 13, 2009
1 parent ddd1f6c commit 7f384ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/lasi700.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ lasi700_probe(struct parisc_device *dev)

hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
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;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/zalon.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ zalon_probe(struct parisc_device *dev)
goto fail;

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);
goto fail;
}
Expand Down

0 comments on commit 7f384ce

Please sign in to comment.