• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión2785fc4868db1f2643ffd2b989c88cde9dcced4c (tree)
Tiempo2022-07-27 15:19:42
AutorHeinrich Schuchardt <xypron.glpk@gmx....>
CommiterJaehoon Chung

Log Message

mmc: pci_mmc.c should build with ACPIGEN=n

sandbox_defconfig builds the PCI MMC driver. It should be possible to
build the sandbox without ACPI support.

ACPI support in the PCI MMC driver is only needed when creating an ACPI
table. Fix building with ACPIGEN=n.

Fixes: dba7ee419d9d ("acpi: mmc: Generate ACPI info for the PCI SD Card")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Cambiar Resumen

Diferencia incremental

--- a/drivers/mmc/pci_mmc.c
+++ b/drivers/mmc/pci_mmc.c
@@ -86,6 +86,7 @@ static int pci_mmc_bind(struct udevice *dev)
8686 return sdhci_bind(dev, &plat->mmc, &plat->cfg);
8787 }
8888
89+__maybe_unused
8990 static int pci_mmc_acpi_fill_ssdt(const struct udevice *dev,
9091 struct acpi_ctx *ctx)
9192 {
@@ -138,7 +139,9 @@ static int pci_mmc_acpi_fill_ssdt(const struct udevice *dev,
138139 }
139140
140141 struct acpi_ops pci_mmc_acpi_ops = {
142+#ifdef CONFIG_ACPIGEN
141143 .fill_ssdt = pci_mmc_acpi_fill_ssdt,
144+#endif
142145 };
143146
144147 static const struct udevice_id pci_mmc_match[] = {