parisc: fix dev_printk() compile warnings for accessing a device struct
PATCH 1/1 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
drivers/scsi/lasi700.c +1 -1
@@ -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 ; }
drivers/scsi/zalon.c +1 -1
@@ -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; }
Kyle McMartin
AppliedQuoted 12 lines · Helge Deller
Fix compile warnings:
drivers/scsi/zalon.c: In function `zalon_probe':drivers/scsi/zalon.c:140: warning: passing arg 1 ofdev_driver_string' from incompatible pointer type drivers/scsi/zalon.c:140: warning: passing arg 1 ofdev_name' from incompatible pointer typeSigned-off-by Helge Deller <[email protected]>drivers/scsi/lasi700.c +0
-0
drivers/scsi/lasi700.c lasi700_probe(struct parisc_device *dev) · line 106
Quoted 5 lines
drivers/scsi/lasi700.c +1
-1@@ -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" );
Huh, I thought there was a pretty macro thingy that casted to the embedded struct device. Oh well.
applied.