Re: [PATCH 2/2] PCI: controller: avoid building empty drivers

From: Arnd Bergmann
Date: Sat Feb 27 2021 - 07:32:23 EST


On Fri, Feb 26, 2021 at 8:08 PM Robert Richter <rric@xxxxxxxxxx> wrote:
> On 25.02.21 15:37:10, Arnd Bergmann wrote:
>
> A possible double inclusion isn't really nice here, but it should work
> that way.
>
> Also, the menu entry for the driver is in fact only for the OF case,
> as it is always included for ACPI even if the option is disabled (and
> thus the choice is useless). But this is unrelated to this patch.

Yes, I considered doing this using Kconfig syntax by adding another
symbol for each affected driver and selecting those, but the Makefile
hack seemed easier here.

> Reviewed-by: Robert Richter <rric@xxxxxxxxxx>

Thanks,

Arnd