Re: [PATCH] of: Make of framebuffer devices unique

From: Rob Herring
Date: Wed Jan 18 2023 - 11:26:51 EST



On Tue, 17 Jan 2023 17:58:04 +0100, Michal Suchanek wrote:
> Since Linux 5.19 this error is observed:
>
> sysfs: cannot create duplicate filename '/devices/platform/of-display'
>
> This is because multiple devices with the same name 'of-display' are
> created on the same bus.
>
> Update the code to create numbered device names for the non-boot
> disaplay.
>
> cc: linuxppc-dev@xxxxxxxxxxxxxxxx
> References: https://bugzilla.kernel.org/show_bug.cgi?id=216095
> Fixes: 52b1b46c39ae ("of: Create platform devices for OF framebuffers")
> Reported-by: Erhard F. <erhard_f@xxxxxxxxxxx>
> Suggested-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
> Signed-off-by: Michal Suchanek <msuchanek@xxxxxxx>
> ---
> drivers/of/platform.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>

Applied, thanks!