public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SCSI: fix the return type of the remove() method in sgiwd93.c
@ 2008-11-20  0:19 Dmitri Vorobiev
  2008-12-03 16:24 ` Vorobiev Dmitri
  0 siblings, 1 reply; 20+ messages in thread
From: Dmitri Vorobiev @ 2008-11-20  0:19 UTC (permalink / raw)
  To: linux-scsi, James.Bottomley; +Cc: linux-mips, Dmitri Vorobiev

This patch fixes the following compilation warning:

  CC [M]  drivers/scsi/sgiwd93.o
drivers/scsi/sgiwd93.c:314: warning: initialization from incompatible
pointer type

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
---
 drivers/scsi/sgiwd93.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c
index 31fe605..672a521 100644
--- a/drivers/scsi/sgiwd93.c
+++ b/drivers/scsi/sgiwd93.c
@@ -297,7 +297,7 @@ out:
 	return err;
 }
 
-static void __exit sgiwd93_remove(struct platform_device *pdev)
+static int __exit sgiwd93_remove(struct platform_device *pdev)
 {
 	struct Scsi_Host *host = platform_get_drvdata(pdev);
 	struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata;
@@ -307,6 +307,8 @@ static void __exit sgiwd93_remove(struct platform_device *pdev)
 	free_irq(pd->irq, host);
 	dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma);
 	scsi_host_put(host);
+
+	return 0;
 }
 
 static struct platform_driver sgiwd93_driver = {
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2009-01-02 16:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20  0:19 [PATCH] SCSI: fix the return type of the remove() method in sgiwd93.c Dmitri Vorobiev
2008-12-03 16:24 ` Vorobiev Dmitri
2008-12-03 17:08   ` James Bottomley
2008-12-03 17:52     ` Kay Sievers
2008-12-03 18:01       ` James Bottomley
2008-12-03 18:42         ` Vorobiev Dmitri
2008-12-03 18:51           ` Kay Sievers
2008-12-03 19:00             ` James Bottomley
2008-12-03 20:29               ` Kay Sievers
2008-12-03 20:52                 ` James Bottomley
2008-12-03 20:59                   ` Kay Sievers
2008-12-03 21:02                     ` James Bottomley
2008-12-03 21:28                       ` Kay Sievers
2008-12-03 21:33                         ` James Bottomley
2008-12-03 21:41                           ` Kay Sievers
2009-01-02 16:25                             ` James Bottomley
2009-01-02 16:31                               ` Kay Sievers
2009-01-02 16:32                                 ` James Bottomley
2008-12-03 19:07             ` Vorobiev Dmitri
2008-12-03 19:10               ` Vorobiev Dmitri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox