Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f384ce7 authored by Helge Deller's avatar Helge Deller Committed by Kyle McMartin
Browse files

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: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent ddd1f6c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

+1 −1
Original line number Diff line number Diff line
@@ -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;
	}