Commit e65efc6
committed
Input: samsung-keypad - switch to using devm_clk_get_prepared()
Switch to using devm_clk_get_prepared() instead of combining
devm_clk_get() with clk_prepare(), which simplifies the code and
ensures that the clock is unprepared at the right time relative to
releasing other managed resources.
Link: https://lore.kernel.org/r/20240819045813.2154642-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent c6f908f commit e65efc6
1 file changed
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | 370 | | |
377 | 371 | | |
378 | 372 | | |
| |||
399 | 393 | | |
400 | 394 | | |
401 | 395 | | |
402 | | - | |
| 396 | + | |
403 | 397 | | |
404 | 398 | | |
405 | 399 | | |
| |||
411 | 405 | | |
412 | 406 | | |
413 | 407 | | |
414 | | - | |
| 408 | + | |
415 | 409 | | |
416 | 410 | | |
417 | 411 | | |
418 | 412 | | |
419 | 413 | | |
420 | 414 | | |
421 | 415 | | |
422 | | - | |
| 416 | + | |
423 | 417 | | |
424 | 418 | | |
425 | 419 | | |
| |||
439 | 433 | | |
440 | 434 | | |
441 | 435 | | |
442 | | - | |
443 | | - | |
444 | 436 | | |
445 | 437 | | |
446 | 438 | | |
447 | 439 | | |
448 | 440 | | |
449 | | - | |
450 | | - | |
451 | 441 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | 442 | | |
457 | 443 | | |
458 | 444 | | |
| |||
0 commit comments