.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2015, Daniel Thompson |
---|
3 | | - * |
---|
4 | | - * This file is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version 2 |
---|
7 | | - * of the License, or (at your option) any later version. |
---|
8 | | - * |
---|
9 | | - * This file is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 4 | */ |
---|
14 | 5 | |
---|
15 | 6 | #include <linux/clk.h> |
---|
.. | .. |
---|
154 | 145 | |
---|
155 | 146 | dev_set_drvdata(dev, priv); |
---|
156 | 147 | |
---|
157 | | - priv->rng.name = dev_driver_string(dev), |
---|
| 148 | + priv->rng.name = dev_driver_string(dev); |
---|
158 | 149 | #ifndef CONFIG_PM |
---|
159 | | - priv->rng.init = stm32_rng_init, |
---|
160 | | - priv->rng.cleanup = stm32_rng_cleanup, |
---|
| 150 | + priv->rng.init = stm32_rng_init; |
---|
| 151 | + priv->rng.cleanup = stm32_rng_cleanup; |
---|
161 | 152 | #endif |
---|
162 | | - priv->rng.read = stm32_rng_read, |
---|
| 153 | + priv->rng.read = stm32_rng_read; |
---|
163 | 154 | priv->rng.priv = (unsigned long) dev; |
---|
| 155 | + priv->rng.quality = 900; |
---|
164 | 156 | |
---|
165 | 157 | pm_runtime_set_autosuspend_delay(dev, 100); |
---|
166 | 158 | pm_runtime_use_autosuspend(dev); |
---|