[PATCH -next v2] rtc: stmp3xxx: Add failure handling for stmp3xxx_wdt_register()

Wolfram Sang wsa at kernel.org
Wed Sep 14 23:31:15 PDT 2022


On Thu, Sep 15, 2022 at 09:33:04AM +0800, Lin Yujun wrote:
> Use platform_device_put() to free platform device before print
> error message when platform_device_add() fails to run. Add dev_err()
> to report error in case of alloc memory to wdt_pdev fail.

The second part of the commit message is now obsolete.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220915/113d032e/attachment.sig>


More information about the linux-arm-kernel mailing list