| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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 | | - * |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 122 | 109 | |
|---|
| 123 | 110 | static struct crypto_alg alg = { |
|---|
| 124 | 111 | .cra_name = "lzo", |
|---|
| 112 | + .cra_driver_name = "lzo-generic", |
|---|
| 125 | 113 | .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, |
|---|
| 126 | 114 | .cra_ctxsize = sizeof(struct lzo_ctx), |
|---|
| 127 | 115 | .cra_module = THIS_MODULE, |
|---|
| .. | .. |
|---|
| 167 | 155 | crypto_unregister_scomp(&scomp); |
|---|
| 168 | 156 | } |
|---|
| 169 | 157 | |
|---|
| 170 | | -module_init(lzo_mod_init); |
|---|
| 158 | +subsys_initcall(lzo_mod_init); |
|---|
| 171 | 159 | module_exit(lzo_mod_fini); |
|---|
| 172 | 160 | |
|---|
| 173 | 161 | MODULE_LICENSE("GPL"); |
|---|