.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Cryptographic API. |
---|
3 | 4 | * |
---|
4 | 5 | * 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 | | - * |
---|
19 | 6 | */ |
---|
20 | 7 | #include <linux/init.h> |
---|
21 | 8 | #include <linux/module.h> |
---|
.. | .. |
---|
120 | 107 | |
---|
121 | 108 | static struct crypto_alg alg_lz4hc = { |
---|
122 | 109 | .cra_name = "lz4hc", |
---|
| 110 | + .cra_driver_name = "lz4hc-generic", |
---|
123 | 111 | .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, |
---|
124 | 112 | .cra_ctxsize = sizeof(struct lz4hc_ctx), |
---|
125 | 113 | .cra_module = THIS_MODULE, |
---|
126 | | - .cra_list = LIST_HEAD_INIT(alg_lz4hc.cra_list), |
---|
127 | 114 | .cra_init = lz4hc_init, |
---|
128 | 115 | .cra_exit = lz4hc_exit, |
---|
129 | 116 | .cra_u = { .compress = { |
---|
.. | .. |
---|
166 | 153 | crypto_unregister_scomp(&scomp); |
---|
167 | 154 | } |
---|
168 | 155 | |
---|
169 | | -module_init(lz4hc_mod_init); |
---|
| 156 | +subsys_initcall(lz4hc_mod_init); |
---|
170 | 157 | module_exit(lz4hc_mod_fini); |
---|
171 | 158 | |
---|
172 | 159 | MODULE_LICENSE("GPL"); |
---|