hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/sni_53c710.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* -*- mode: c; c-basic-offset: 8 -*- */
23
34 /* SNI RM driver
....@@ -5,19 +6,6 @@
56 * Copyright (C) 2001 by James.Bottomley@HansenPartnership.com
67 **-----------------------------------------------------------------------------
78 **
8
-** This program is free software; you can redistribute it and/or modify
9
-** it under the terms of the GNU General Public License as published by
10
-** the Free Software Foundation; either version 2 of the License, or
11
-** (at your option) any later version.
12
-**
13
-** This program is distributed in the hope that it will be useful,
14
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
15
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
-** GNU General Public License for more details.
17
-**
18
-** You should have received a copy of the GNU General Public License
19
-** along with this program; if not, write to the Free Software
20
-** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
219 **
2210 **-----------------------------------------------------------------------------
2311 */
....@@ -40,7 +28,6 @@
4028 #include <linux/platform_device.h>
4129
4230 #include <asm/page.h>
43
-#include <asm/pgtable.h>
4431 #include <asm/irq.h>
4532 #include <asm/delay.h>
4633
....@@ -84,7 +71,7 @@
8471
8572 hostdata->dev = &dev->dev;
8673 dma_set_mask(&dev->dev, DMA_BIT_MASK(32));
87
- hostdata->base = ioremap_nocache(base, 0x100);
74
+ hostdata->base = ioremap(base, 0x100);
8875 hostdata->differential = 0;
8976
9077 hostdata->clock = SNIRM710_CLOCK;
....@@ -140,16 +127,4 @@
140127 .name = "snirm_53c710",
141128 },
142129 };
143
-
144
-static int __init snirm710_init(void)
145
-{
146
- return platform_driver_register(&snirm710_driver);
147
-}
148
-
149
-static void __exit snirm710_exit(void)
150
-{
151
- platform_driver_unregister(&snirm710_driver);
152
-}
153
-
154
-module_init(snirm710_init);
155
-module_exit(snirm710_exit);
130
+module_platform_driver(snirm710_driver);