hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/crypto/lz4hc.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Cryptographic API.
34 *
45 * Copyright (c) 2013 Chanho Min <chanho.min@lge.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published by
8
- * the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program; if not, write to the Free Software Foundation, Inc., 51
17
- * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
- *
196 */
207 #include <linux/init.h>
218 #include <linux/module.h>
....@@ -120,10 +107,10 @@
120107
121108 static struct crypto_alg alg_lz4hc = {
122109 .cra_name = "lz4hc",
110
+ .cra_driver_name = "lz4hc-generic",
123111 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS,
124112 .cra_ctxsize = sizeof(struct lz4hc_ctx),
125113 .cra_module = THIS_MODULE,
126
- .cra_list = LIST_HEAD_INIT(alg_lz4hc.cra_list),
127114 .cra_init = lz4hc_init,
128115 .cra_exit = lz4hc_exit,
129116 .cra_u = { .compress = {
....@@ -166,7 +153,7 @@
166153 crypto_unregister_scomp(&scomp);
167154 }
168155
169
-module_init(lz4hc_mod_init);
156
+subsys_initcall(lz4hc_mod_init);
170157 module_exit(lz4hc_mod_fini);
171158
172159 MODULE_LICENSE("GPL");