2022-09-15 07:26:42

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH -next v3] rtc: stmp3xxx: Add failure handling for stmp3xxx_wdt_register()

On Thu, Sep 15, 2022 at 02:52:53PM +0800, Lin Yujun wrote:
> Use platform_device_put() to free platform device before print
> error message when platform_device_add() fails to run.
>
> Fixes: 1a71fb84fda6 ("rtc: stmp3xxx: add wdt-accessor function")
> Signed-off-by: Lin Yujun <[email protected]>

Reviewed-by: Wolfram Sang <[email protected]>


Attachments:
(No filename) (357.00 B)
signature.asc (849.00 B)
Download all attachments