[PATCH] mmc: sdhci-brcmstb: don't log an error for missing BOOT registers
Markus Elfring
Markus.Elfring at web.de
Fri Oct 9 02:40:41 PDT 2026
…
> +++ b/drivers/mmc/host/sdhci-brcmstb.c
> @@ -491,6 +491,7 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
> struct sdhci_brcmstb_priv *priv;
> u32 actual_clock_mhz;
> struct sdhci_host *host;
> + struct resource *boot_res;
…
I suggest to reduce the scope for this local variable because you would like to use it only
within a selected if branch.
https://elixir.bootlin.com/linux/v7.3-rc6/source/drivers/mmc/host/sdhci-brcmstb.c#L535-L540
Regards,
Markus
More information about the linux-arm-kernel
mailing list