Re: [PATCH] media: mali-c55: Fix NULL dev stream alert for tpg sub-device
From: Dan Scally
Date: Tue Jan 13 2026 - 09:12:10 EST
On 13/01/2026 10:40, Sakari Ailus wrote:
Hi Jacopo,
On Tue, Jan 13, 2026 at 09:55:10AM +0100, Jacopo Mondi wrote:
I wonder if v4l2_device_register_subdev() shouldn't WARN or if return
an error if sd->dev is not initialized. Laurent, Sakari: opinions ?
I might even return an error but I wonder what would break. Perhaps indeed
could start with a warning?
It looks like it's only used for dev_*() printks, unless I'm missing something. Thanks Jempty for spotting the problem!
Dan