Re: [PATCH] mmc: block: Use the mmc host device index as the mmcblk device index

Ulf Hansson
2016-05-16T21:45:53Z

On 16 May 2016 at 22:30, Laszlo Fiat <laszlo.fiat@gmail.com> wrote:
> I ran into a problem with the kernel compilation using Adrian's patch:
> ERROR: "acpi_device_fix_up_power" [drivers/mmc/host/sdhci-acpi.ko] undefined!
> scripts/Makefile.modpost:91: recipe for target '__modpost' failed
> make[1]: *** [__modpost] Error 1
> Makefile:1142: recipe for target 'modules' failed
> make: *** [modules] Error 2
>
> The acpi_device_fix_up_power routine is in drivers/acpi/device_pm.c,
> but I don't know how can I make it to find it.
>
> Any help is appreciated.

In drivers/acpi/device_pm.c, after the function implementation, add:
EXPORT_SYMBOL_GPL(acpi_device_fix_up_power);

Kind regards
Uffe