Skip to content

Commit b3e202f

Browse files
geertustorulf
authored andcommitted
mmc: sdhci-omap: Remove forward declaration of sdhci_omap_context_save()
If CONFIG_PM_SLEEP=n: drivers/mmc/host/sdhci-omap.c:1213:13: error: ‘sdhci_omap_context_save’ declared ‘static’ but never defined [-Werror=unused-function] 1213 | static void sdhci_omap_context_save(struct sdhci_omap_host *omap_host); | ^~~~~~~~~~~~~~~~~~~~~~~ The referenced commit added an unrelated forward declaration of sdhci_omap_context_save(), which is unneeded in general, and unused when CONFIG_PM_SLEEP=n. Fixes: f433e8a ("mmc: sdhci-omap: Implement PM runtime functions") Reported-by: [email protected] Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 738216c commit b3e202f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/mmc/host/sdhci-omap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,6 @@ static const struct soc_device_attribute sdhci_omap_soc_devices[] = {
12101210
}
12111211
};
12121212

1213-
static void sdhci_omap_context_save(struct sdhci_omap_host *omap_host);
1214-
12151213
static int sdhci_omap_probe(struct platform_device *pdev)
12161214
{
12171215
int ret;

0 commit comments

Comments
 (0)