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

Laszlo Fiat
2016-05-17T18:11:24Z

On Mon, May 16, 2016 at 11:45 PM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> 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

Hello,

The patch Adrian posted in this thread is working fine, my Teclast
X80h tablet finds all it's SD devices with it. You just have to add
the EXPORT_SYMBOL Uffe wrote above to be able to compile with the
patch.

Tested-by: Laszlo Fiat <laszlo.fiat@gmail.com>

Thank you for working on and fixing this problem.

Bye,

Laszlo Fiat