Commit 2c11ea7
mtd: rawnand: orion: Use helper function devm_clk_get_optional_enabled()
Since commit 7ef9651 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get_optional() and clk_prepare_enable() can
now be replaced by devm_clk_get_optional_enabled() when driver enables
(and possibly prepares) the clocks for the whole lifetime of the device.
Moreover, it is no longer necessary to unprepare and disable the clocks
explicitly, so drop the label "no_dev".
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230821031737.1973183-13-lizetao1@huawei.com1 parent 4195b64 commit 2c11ea7
1 file changed
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 175 | + | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
| |||
189 | 183 | | |
190 | 184 | | |
191 | 185 | | |
192 | | - | |
| 186 | + | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
196 | | - | |
| 190 | + | |
197 | 191 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 192 | | |
203 | | - | |
204 | | - | |
205 | 193 | | |
206 | 194 | | |
207 | 195 | | |
| |||
215 | 203 | | |
216 | 204 | | |
217 | 205 | | |
218 | | - | |
219 | | - | |
220 | 206 | | |
221 | 207 | | |
222 | 208 | | |
| |||
0 commit comments