[PATCH v4] soc: nuvoton: Add SoC info driver for WPCM450

Arnd Bergmann arnd at arndb.de
Fri Jun 17 21:39:56 AEST 2022


On Fri, Jun 17, 2022 at 11:28 AM Jonathan Neuschäfer
<j.neuschaefer at gmx.net> wrote:
> > Just add the trivial cleanup function and MODULE_LICENSE() etc tags.
>
> The right thing to do seems to be to unregister the SoC device in the
> cleanup function. Is that what you mean?

Yes, plus kfree() the soc_device_attribute, or make it statically allocated.

     Arnd


More information about the openbmc mailing list