Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Helge Deller and committed by
Kyle McMartin
7f384ce7 ddd1f6c6

+2 -2
+1 -1
drivers/scsi/lasi700.c
··· 103 103 104 104 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); 105 105 if (!hostdata) { 106 - dev_printk(KERN_ERR, dev, "Failed to allocate host data\n"); 106 + dev_printk(KERN_ERR, &dev->dev, "Failed to allocate host data\n"); 107 107 return -ENOMEM; 108 108 } 109 109
+1 -1
drivers/scsi/zalon.c
··· 137 137 goto fail; 138 138 139 139 if (request_irq(dev->irq, ncr53c8xx_intr, IRQF_SHARED, "zalon", host)) { 140 - dev_printk(KERN_ERR, dev, "irq problem with %d, detaching\n ", 140 + dev_printk(KERN_ERR, &dev->dev, "irq problem with %d, detaching\n ", 141 141 dev->irq); 142 142 goto fail; 143 143 }