Commit 241d2fb
of: Make OF framebuffer device names unique
Since Linux 5.19 this error is observed:
sysfs: cannot create duplicate filename '/devices/platform/of-display'
This is because multiple devices with the same name 'of-display' are
created on the same bus. Update the code to create numbered device names
for the displays.
Also, fix a node refcounting issue when exiting the boot display loop.
cc: [email protected]
References: https://bugzilla.kernel.org/show_bug.cgi?id=216095
Fixes: 52b1b46 ("of: Create platform devices for OF framebuffers")
Reported-by: Erhard F. <[email protected]>
Suggested-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Michal Suchanek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[robh: Rework to avoid node refcount leaks]
Signed-off-by: Rob Herring <[email protected]>1 parent 064e32d commit 241d2fb
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
| |||
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
558 | | - | |
| 559 | + | |
| 560 | + | |
559 | 561 | | |
560 | 562 | | |
561 | 563 | | |
| 564 | + | |
562 | 565 | | |
563 | 566 | | |
564 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
565 | 571 | | |
566 | 572 | | |
567 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
| |||
0 commit comments