forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/scsi/pcmcia/sym53c500_cs.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sym53c500_cs.c Bob Tracy (rct@frus.com)
34 *
....@@ -25,16 +26,6 @@
2526 * Original by Tom Corner (tcorner@via.at) was adapted from a
2627 * driver for the Qlogic SCSI card written by
2728 * David Hinds (dhinds@allegro.stanford.edu).
28
-*
29
-* This program is free software; you can redistribute it and/or modify it
30
-* under the terms of the GNU General Public License as published by the
31
-* Free Software Foundation; either version 2, or (at your option) any
32
-* later version.
33
-*
34
-* This program is distributed in the hope that it will be useful, but
35
-* WITHOUT ANY WARRANTY; without even the implied warranty of
36
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
37
-* General Public License for more details.
3829 */
3930
4031 #define SYM53C500_DEBUG 0
....@@ -680,7 +671,6 @@
680671 .can_queue = 1,
681672 .this_id = 7,
682673 .sg_tablesize = 32,
683
- .use_clustering = ENABLE_CLUSTERING,
684674 .shost_attrs = SYM53C500_shost_attrs
685675 };
686676
....@@ -880,18 +870,4 @@
880870 .id_table = sym53c500_ids,
881871 .resume = sym53c500_resume,
882872 };
883
-
884
-static int __init
885
-init_sym53c500_cs(void)
886
-{
887
- return pcmcia_register_driver(&sym53c500_cs_driver);
888
-}
889
-
890
-static void __exit
891
-exit_sym53c500_cs(void)
892
-{
893
- pcmcia_unregister_driver(&sym53c500_cs_driver);
894
-}
895
-
896
-module_init(init_sym53c500_cs);
897
-module_exit(exit_sym53c500_cs);
873
+module_pcmcia_driver(sym53c500_cs_driver);