hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/crypto/lz4.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
218 #include <linux/init.h>
....@@ -119,10 +106,10 @@
119106
120107 static struct crypto_alg alg_lz4 = {
121108 .cra_name = "lz4",
109
+ .cra_driver_name = "lz4-generic",
122110 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS,
123111 .cra_ctxsize = sizeof(struct lz4_ctx),
124112 .cra_module = THIS_MODULE,
125
- .cra_list = LIST_HEAD_INIT(alg_lz4.cra_list),
126113 .cra_init = lz4_init,
127114 .cra_exit = lz4_exit,
128115 .cra_u = { .compress = {
....@@ -165,7 +152,7 @@
165152 crypto_unregister_scomp(&scomp);
166153 }
167154
168
-module_init(lz4_mod_init);
155
+subsys_initcall(lz4_mod_init);
169156 module_exit(lz4_mod_fini);
170157
171158 MODULE_LICENSE("GPL");