diff options
Diffstat (limited to 'drivers/message/i2o/i2o_scsi.c')
| -rw-r--r-- | drivers/message/i2o/i2o_scsi.c | 15 | 
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/message/i2o/i2o_scsi.c b/drivers/message/i2o/i2o_scsi.c index ea6b2197da8..1d31d7284cb 100644 --- a/drivers/message/i2o/i2o_scsi.c +++ b/drivers/message/i2o/i2o_scsi.c @@ -57,9 +57,8 @@  #include <linux/scatterlist.h>  #include <asm/dma.h> -#include <asm/system.h>  #include <asm/io.h> -#include <asm/atomic.h> +#include <linux/atomic.h>  #include <scsi/scsi.h>  #include <scsi/scsi_host.h> @@ -204,7 +203,7 @@ static int i2o_scsi_remove(struct device *dev)   *	i2o_scsi_probe - verify if dev is a I2O SCSI device and install it   *	@dev: device to verify if it is a I2O SCSI device   * - *	Retrieve channel, id and lun for I2O device. If everthing goes well + *	Retrieve channel, id and lun for I2O device. If everything goes well   *	register the I2O device as SCSI device on the I2O SCSI controller.   *   *	Returns 0 on success or negative error code on failure. @@ -361,7 +360,7 @@ static int i2o_scsi_reply(struct i2o_controller *c, u32 m,  	 */  	error = le32_to_cpu(msg->body[0]); -	osm_debug("Completed %ld\n", cmd->serial_number); +	osm_debug("Completed %0x%p\n", cmd);  	cmd->result = error & 0xff;  	/* @@ -506,7 +505,7 @@ static struct i2o_driver i2o_scsi_driver = {   *	Locks: takes the controller lock on error path only   */ -static int i2o_scsi_queuecommand(struct scsi_cmnd *SCpnt, +static int i2o_scsi_queuecommand_lck(struct scsi_cmnd *SCpnt,  				 void (*done) (struct scsi_cmnd *))  {  	struct i2o_controller *c; @@ -678,7 +677,7 @@ static int i2o_scsi_queuecommand(struct scsi_cmnd *SCpnt,  	/* Queue the message */  	i2o_msg_post(c, msg); -	osm_debug("Issued %ld\n", SCpnt->serial_number); +	osm_debug("Issued %0x%p\n", SCpnt);  	return 0; @@ -688,7 +687,9 @@ static int i2o_scsi_queuecommand(struct scsi_cmnd *SCpnt,        exit:  	return rc; -}; +} + +static DEF_SCSI_QCMD(i2o_scsi_queuecommand)  /**   *	i2o_scsi_abort - abort a running command  | 
