hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/scsi/arm/eesox.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/acorn/scsi/eesox.c
34 *
45 * Copyright (C) 1997-2005 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * This driver is based on experimentation. Hence, it may have made
118 * assumptions about the particular card that I have available, and
....@@ -32,11 +29,11 @@
3229 #include <linux/interrupt.h>
3330 #include <linux/init.h>
3431 #include <linux/dma-mapping.h>
32
+#include <linux/pgtable.h>
3533
3634 #include <asm/io.h>
3735 #include <asm/dma.h>
3836 #include <asm/ecard.h>
39
-#include <asm/pgtable.h>
4037
4138 #include "../scsi.h"
4239 #include <scsi/scsi_host.h>
....@@ -168,12 +165,13 @@
168165
169166 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG);
170167
171
- if (direction == DMA_OUT)
172
- map_dir = DMA_TO_DEVICE,
168
+ if (direction == DMA_OUT) {
169
+ map_dir = DMA_TO_DEVICE;
173170 dma_dir = DMA_MODE_WRITE;
174
- else
175
- map_dir = DMA_FROM_DEVICE,
171
+ } else {
172
+ map_dir = DMA_FROM_DEVICE;
176173 dma_dir = DMA_MODE_READ;
174
+ }
177175
178176 dma_map_sg(dev, info->sg, bufs, map_dir);
179177
....@@ -486,7 +484,6 @@
486484 .this_id = 7,
487485 .sg_tablesize = SG_MAX_SEGMENTS,
488486 .dma_boundary = IOMD_DMA_BOUNDARY,
489
- .use_clustering = DISABLE_CLUSTERING,
490487 .proc_name = "eesox",
491488 };
492489