Re: [PATCH v4 3/6] watchdog: w83627hf_wdt: Convert to platform driver model

From: Paul Louvel

Date: Tue Oct 20 2026 - 03:56:30 EST


On Mon Oct 19, 2026 at 5:22 PM CEST, Tzung-Bi Shih wrote:
> On Tue, Oct 13, 2026 at 03:58:47PM +0200, Paul Louvel wrote:
>> +static int wdt_probe(struct platform_device *pdev)
>> +{
> ...
>> + data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
>> + if (!data)
>> + return dev_err_probe(dev, -ENOMEM, "failed to allocate memory\n");
>
> dev_err_probe() doesn't print anything on -ENOMEM [1].
>
> [1] https://elixir.bootlin.com/linux/v7.2/source/drivers/base/core.c#L5097

ACK.

Thanks,
--
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com