Re: [PATCH] ASoC: ti: j721e-evm: allocate dai_links with priv
From: Mark Brown
Date: Tue Apr 28 2026 - 00:02:40 EST
On Sun, Apr 26, 2026 at 10:19:53PM -0700, Rosen Penev wrote:
> Remove open coding of of_device_get_match_data as well as unnecessary
> NULL checks. of_device_get_match_data cannot fail. All compatible
> entries have a corresponding data section.
of_device_get_match_data() can fail if there is no match data, for
example because someone is using sysfs to try to instantiate rather than
instantiating from device tree. There is no reason to take out the
error handling here, it just makes things less robust.
Attachment:
signature.asc
Description: PGP signature