Skip to content

Commit e5779a5

Browse files
geertugregkh
authored andcommitted
scsi/m68k: Kill NCR_700_detect() warnings
The patch from Ming Lei <tom.leiming@gmail.com> entitled: platform driver: fix incorrect use of 'platform_bus_type' with 'struct devic introduced the following warnings on m68k, as `dev' is now a `struct platform_device *' instead of a `struct device *': | drivers/scsi/a4000t.c:64: warning: passing argument 3 of 'NCR_700_detect' from incompatible pointer type | drivers/scsi/mvme16x_scsi.c:67: warning: passing argument 3 of 'NCR_700_detect' from incompatible pointer type | drivers/scsi/bvme6000_scsi.c:61: warning: passing argument 3 of 'NCR_700_detect' from incompatible pointer type I think the below is missing (untested on real hardware). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 7a192ec commit e5779a5

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎drivers/scsi/a4000t.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ static int __devinit a4000t_probe(struct platform_device *dev)
6161
hostdata->dcntl_extra = EA_710;
6262

6363
/* and register the chip */
64-
host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata, dev);
64+
host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata,
65+
&dev->dev);
6566
if (!host) {
6667
printk(KERN_ERR "a4000t-scsi: No host detected; "
6768
"board configuration problem?\n");

‎drivers/scsi/bvme6000_scsi.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ bvme6000_probe(struct platform_device *dev)
5858
hostdata->ctest7_extra = CTEST7_TT1;
5959

6060
/* and register the chip */
61-
host = NCR_700_detect(&bvme6000_scsi_driver_template, hostdata, dev);
61+
host = NCR_700_detect(&bvme6000_scsi_driver_template, hostdata,
62+
&dev->dev);
6263
if (!host) {
6364
printk(KERN_ERR "bvme6000-scsi: No host detected; "
6465
"board configuration problem?\n");

‎drivers/scsi/mvme16x_scsi.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ mvme16x_probe(struct platform_device *dev)
6464
hostdata->ctest7_extra = CTEST7_TT1;
6565

6666
/* and register the chip */
67-
host = NCR_700_detect(&mvme16x_scsi_driver_template, hostdata, dev);
67+
host = NCR_700_detect(&mvme16x_scsi_driver_template, hostdata,
68+
&dev->dev);
6869
if (!host) {
6970
printk(KERN_ERR "mvme16x-scsi: No host detected; "
7071
"board configuration problem?\n");

0 commit comments

Comments
 (0)