Re: [PATCH 20/28] media: platform: jpeg: always reference OF data

From: Sakari Ailus
Date: Thu May 25 2023 - 09:17:02 EST


On Tue, Mar 21, 2023 at 09:26:29AM +0100, Krzysztof Kozlowski wrote:
> On 21/03/2023 09:24, Arnd Bergmann wrote:
> > On Tue, Mar 21, 2023, at 09:21, Krzysztof Kozlowski wrote:
> >> On 21/03/2023 09:11, Arnd Bergmann wrote:
> >>> On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote:
> >>>> The driver can match only via the DT table so the table should be always
> >>>> used and the of_match_ptr does not have any sense (this also allows ACPI
> >>>> matching via PRP0001, even though it might not be relevant here). This
> >>>> also fixes !CONFIG_OF error:
> >>>>
> >>>> drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error:
> >>>> ‘mtk8195_jpegdec_drvdata’ defined but not used
> >>>> [-Werror=unused-const-variable=]
> >>>>
> >>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
> >>>
> >>> I see now that we both submitted the same patch, but now Hans
> >>
> >> We as you and me? I cannot find your patch on lore:
> >> https://lore.kernel.org/all/?q=f%3Aarnd%40arndb.de
> >
> > This is the one that I sent back in January:
> >
> > https://lore.kernel.org/all/20230117172644.3044265-1-arnd@xxxxxxxxxx
>
> Uh, that's from January! It's still waiting in Patchwork:
> https://patchwork.linuxtv.org/project/linux-media/patch/20230117172644.3044265-1-arnd@xxxxxxxxxx/

Yes... this still makes sense, to remove of_match_ptr(). I rebased this,
resulting in: