/* Frees the SG list from the I2O block request.  */
static void i2o_block_sglist_free(struct i2o_block_request *ireq)
/* Frees the SG list from the I2O block request.  */
static void i2o_block_sglist_free(struct i2o_block_request *ireq)
{
	enum dma_data_direction direction;
	if (rq_data_dir(ireq->req) == READ)
		direction = PCI_DMA_FROMDEVICE;
	else
		direction = PCI_DMA_TODEVICE;
	dma_unmap_sg(ireq->dev, ireq->sg_table, ireq->sg_nents, direction);
}