> + if (rc) > + platform_device_put(wdt_pdev); This is correct, thanks. > + } else { > + dev_err(&rtc_pdev->dev, > + "failed to allocate stmp3xxx_rtc_wdt\n"); This is superfluous because rc is initialized to -1.
Attachment:
signature.asc
Description: PGP signature