diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-03-11 04:23:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:38:25 -0400 |
commit | e5779a583ddb9916b37cfbb916dc53ec2eaf0b9b (patch) | |
tree | 0e469faf056b8a2568658efa8b589a32b7c74dc4 | |
parent | 7a192ec334cab9fafe3a8665a65af398b0e24730 (diff) |
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>
-rw-r--r-- | drivers/scsi/a4000t.c | 3 | ||||
-rw-r--r-- | drivers/scsi/bvme6000_scsi.c | 3 | ||||
-rw-r--r-- | drivers/scsi/mvme16x_scsi.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c index 6d25aca7b412..61af3d91ac8a 100644 --- a/drivers/scsi/a4000t.c +++ b/drivers/scsi/a4000t.c | |||
@@ -61,7 +61,8 @@ static int __devinit a4000t_probe(struct platform_device *dev) | |||
61 | hostdata->dcntl_extra = EA_710; | 61 | hostdata->dcntl_extra = EA_710; |
62 | 62 | ||
63 | /* and register the chip */ | 63 | /* 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); | ||
65 | if (!host) { | 66 | if (!host) { |
66 | printk(KERN_ERR "a4000t-scsi: No host detected; " | 67 | printk(KERN_ERR "a4000t-scsi: No host detected; " |
67 | "board configuration problem?\n"); | 68 | "board configuration problem?\n"); |
diff --git a/drivers/scsi/bvme6000_scsi.c b/drivers/scsi/bvme6000_scsi.c index 9e9a82b03f2d..5799cb5cba6b 100644 --- a/drivers/scsi/bvme6000_scsi.c +++ b/drivers/scsi/bvme6000_scsi.c | |||
@@ -58,7 +58,8 @@ bvme6000_probe(struct platform_device *dev) | |||
58 | hostdata->ctest7_extra = CTEST7_TT1; | 58 | hostdata->ctest7_extra = CTEST7_TT1; |
59 | 59 | ||
60 | /* and register the chip */ | 60 | /* 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); | ||
62 | if (!host) { | 63 | if (!host) { |
63 | printk(KERN_ERR "bvme6000-scsi: No host detected; " | 64 | printk(KERN_ERR "bvme6000-scsi: No host detected; " |
64 | "board configuration problem?\n"); | 65 | "board configuration problem?\n"); |
diff --git a/drivers/scsi/mvme16x_scsi.c b/drivers/scsi/mvme16x_scsi.c index 7794fc158b17..b5fbfd6ce870 100644 --- a/drivers/scsi/mvme16x_scsi.c +++ b/drivers/scsi/mvme16x_scsi.c | |||
@@ -64,7 +64,8 @@ mvme16x_probe(struct platform_device *dev) | |||
64 | hostdata->ctest7_extra = CTEST7_TT1; | 64 | hostdata->ctest7_extra = CTEST7_TT1; |
65 | 65 | ||
66 | /* and register the chip */ | 66 | /* 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); | ||
68 | if (!host) { | 69 | if (!host) { |
69 | printk(KERN_ERR "mvme16x-scsi: No host detected; " | 70 | printk(KERN_ERR "mvme16x-scsi: No host detected; " |
70 | "board configuration problem?\n"); | 71 | "board configuration problem?\n"); |