Commit f71e4184 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dpt_i2o warning fixes

drivers/scsi/dpt_i2o.c: In function `adpt_queue':
drivers/scsi/dpt_i2o.c:442: warning: use of cast expressions as lvalues is deprecated
drivers/scsi/dpt_i2o.c: In function `adpt_scsi_register':
drivers/scsi/dpt_i2o.c:2213: warning: use of cast expressions as lvalues is deprecated
parent f2284fc6
...@@ -431,7 +431,7 @@ static int adpt_queue(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) ...@@ -431,7 +431,7 @@ static int adpt_queue(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
cmd->scsi_done(cmd); cmd->scsi_done(cmd);
return 0; return 0;
} }
(struct adpt_device*)(cmd->device->hostdata) = pDev; cmd->device->hostdata = pDev;
} }
pDev->pScsi_dev = cmd->device; pDev->pScsi_dev = cmd->device;
...@@ -2158,7 +2158,7 @@ static s32 adpt_scsi_register(adpt_hba* pHba,Scsi_Host_Template * sht) ...@@ -2158,7 +2158,7 @@ static s32 adpt_scsi_register(adpt_hba* pHba,Scsi_Host_Template * sht)
printk ("%s: scsi_register returned NULL\n",pHba->name); printk ("%s: scsi_register returned NULL\n",pHba->name);
return -1; return -1;
} }
(adpt_hba*)(host->hostdata[0]) = pHba; host->hostdata[0] = (unsigned long)pHba;
pHba->host = host; pHba->host = host;
host->irq = pHba->pDev->irq; host->irq = pHba->pDev->irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment