修订版 | 2785fc4868db1f2643ffd2b989c88cde9dcced4c (tree) |
---|---|
时间 | 2022-07-27 15:19:42 |
作者 | Heinrich Schuchardt <xypron.glpk@gmx....> |
Commiter | Jaehoon Chung |
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>
@@ -86,6 +86,7 @@ static int pci_mmc_bind(struct udevice *dev) | ||
86 | 86 | return sdhci_bind(dev, &plat->mmc, &plat->cfg); |
87 | 87 | } |
88 | 88 | |
89 | +__maybe_unused | |
89 | 90 | static int pci_mmc_acpi_fill_ssdt(const struct udevice *dev, |
90 | 91 | struct acpi_ctx *ctx) |
91 | 92 | { |
@@ -138,7 +139,9 @@ static int pci_mmc_acpi_fill_ssdt(const struct udevice *dev, | ||
138 | 139 | } |
139 | 140 | |
140 | 141 | struct acpi_ops pci_mmc_acpi_ops = { |
142 | +#ifdef CONFIG_ACPIGEN | |
141 | 143 | .fill_ssdt = pci_mmc_acpi_fill_ssdt, |
144 | +#endif | |
142 | 145 | }; |
143 | 146 | |
144 | 147 | static const struct udevice_id pci_mmc_match[] = { |