Repository navigation
Commit 67bd8eb
leds: ss4200: fix attribute-creation race
Use the attribute groups of the led-class to create the blink attribute
during probe in order to avoid racing with userspace.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>1 parent 475f854 commit 67bd8eb
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
472 | 478 | | |
473 | 479 | | |
474 | 480 | | |
| |||
481 | 487 | | |
482 | 488 | | |
483 | 489 | | |
| 490 | + | |
484 | 491 | | |
485 | 492 | | |
486 | 493 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 494 | + | |
| 495 | + | |
491 | 496 | | |
492 | 497 | | |
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
497 | | - | |
498 | 502 | | |
499 | 503 | | |
500 | 504 | | |
| |||
0 commit comments