hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/crypto/lzo.c
....@@ -1,19 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Cryptographic API.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License version 2 as published by
6
- * the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program; if not, write to the Free Software Foundation, Inc., 51
15
- * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
- *
174 */
185
196 #include <linux/init.h>
....@@ -122,6 +109,7 @@
122109
123110 static struct crypto_alg alg = {
124111 .cra_name = "lzo",
112
+ .cra_driver_name = "lzo-generic",
125113 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS,
126114 .cra_ctxsize = sizeof(struct lzo_ctx),
127115 .cra_module = THIS_MODULE,
....@@ -167,7 +155,7 @@
167155 crypto_unregister_scomp(&scomp);
168156 }
169157
170
-module_init(lzo_mod_init);
158
+subsys_initcall(lzo_mod_init);
171159 module_exit(lzo_mod_fini);
172160
173161 MODULE_LICENSE("GPL");