On Thursday, May 10, 2018 9:44:33 PM CEST Lukas Wunner wrote: > On Thu, May 10, 2018 at 09:28:35PM +0300, Mika Westerberg wrote: > > + > > +#ifdef CONFIG_HOTPLUG_PCI_PCIE > > +#define pciehp_available() true > > +#else > > +#define pciehp_available() false > > +#endif > > + > > More succinctly, > > #define pciehp_available() IS_ENABLED(CONFIG_HOTPLUG_PCI_PCIE) > > (Or use that directly instead of defining an additional macro.) Right and I would do the latter. Thanks, Rafael