Re: [ulf.hansson-mmc:next 17/28] drivers/mmc/core/slot-gpio.c:311:57: error: 'GPIOD_IN' undeclared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18 August 2014 16:21, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
> On Mon, Aug 18, 2014 at 8:40 AM, kbuild test robot
> <fengguang.wu@xxxxxxxxx> wrote:
>
>>    drivers/mmc/core/slot-gpio.c: In function 'mmc_gpiod_request_cd':
>>>> drivers/mmc/core/slot-gpio.c:311:57: error: 'GPIOD_IN' undeclared (first use in this function)
>>      desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN);
>>                                                             ^
>
> This is because we now require GPIOLIB.
>
> I have two ways to solve this:
>
> - Make CONFIG_MMC select CONFIG_GPIOLIB
>
> - Make slot-gpio optional by introducing stubs in <linux/mmc/slot-gpio.h> if
>   CONFIG_GPIOLIB is not set and not compile slot-gpio.c if GPIOLIB
>   is not selected.
>
> Which one would the MMC maintainers prefer?
>
> I don't think we have a system using some legacy GPIO API without
> GPIOLIB so we should enforce this somehow.

Let's try "CONFIG_MMC select CONFIG_GPIOLIB".

If you are fine with it, I can fold in such a change into the commit,
no need to send a v2.

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux