Commit 58d8a90
committed
mmc: sdhci-brcmstb: silence noise when boot_regs absent
devm_platform_get_and_ioremap_resource() prints
sdhci-brcmstb 1001100000.mmc: error -EINVAL: invalid resource (null)
whenever the optional 'boot_regs' resource (index 2) isn't present.
Pi 5 sdio2 (WLAN) declares only 'host'+'cfg' so this fires every boot
even though the driver intentionally treats the missing resource as
non-fatal.
Use platform_get_resource() to probe for the resource first and only
ioremap when it exists.1 parent 9d267d7 commit 58d8a90
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
637 | | - | |
638 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
639 | 644 | | |
640 | 645 | | |
641 | 646 | | |
| |||
0 commit comments