Re: [PATCH] usb: typec: nb7vpq904m: add CONFIG_OF dependency

From: Dmitry Baryshkov
Date: Thu Dec 07 2023 - 07:12:53 EST


On Thu, 7 Dec 2023 at 14:00, Arnd Bergmann <arnd@xxxxxxxx> wrote:
>
> On Thu, Dec 7, 2023, at 12:57, Heikki Krogerus wrote:
> > On Thu, Dec 07, 2023 at 01:55:06PM +0200, Dmitry Baryshkov wrote:
>
> > Okay, so this probable should also be
> >
> > select DRM_AUX_BRIDGE if DRM_BRIDGE and OF
> >
> > No?
>
> I think that fails if CONFIG_OF is disabled and
> CONFIG_DRM_AUX_BRIDGE, since drm_aux_bridge_register()
> will still be called from a built-in driver in that
> case but can't be linked against.

If DRM_AUX_BRIDGE is not enabled, then the stubs from
include/drm/bridge/aux-bridge will be used instead.

--
With best wishes
Dmitry