| .. | .. |
|---|
| 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 | |
|---|
| 21 | 8 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 119 | 106 | |
|---|
| 120 | 107 | static struct crypto_alg alg_lz4 = { |
|---|
| 121 | 108 | .cra_name = "lz4", |
|---|
| 109 | + .cra_driver_name = "lz4-generic", |
|---|
| 122 | 110 | .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, |
|---|
| 123 | 111 | .cra_ctxsize = sizeof(struct lz4_ctx), |
|---|
| 124 | 112 | .cra_module = THIS_MODULE, |
|---|
| 125 | | - .cra_list = LIST_HEAD_INIT(alg_lz4.cra_list), |
|---|
| 126 | 113 | .cra_init = lz4_init, |
|---|
| 127 | 114 | .cra_exit = lz4_exit, |
|---|
| 128 | 115 | .cra_u = { .compress = { |
|---|
| .. | .. |
|---|
| 165 | 152 | crypto_unregister_scomp(&scomp); |
|---|
| 166 | 153 | } |
|---|
| 167 | 154 | |
|---|
| 168 | | -module_init(lz4_mod_init); |
|---|
| 155 | +subsys_initcall(lz4_mod_init); |
|---|
| 169 | 156 | module_exit(lz4_mod_fini); |
|---|
| 170 | 157 | |
|---|
| 171 | 158 | MODULE_LICENSE("GPL"); |
|---|