Re: [PATCH RESEND 1/2] soc: imx: Add SCU SoC info driver support

From: Fabio Estevam
Date: Sun May 12 2019 - 23:25:51 EST


On Sun, May 12, 2019 at 11:59 PM Anson Huang <anson.huang@xxxxxxx> wrote:

> + soc_dev = soc_device_register(soc_dev_attr);
> + if (IS_ERR(soc_dev)) {
> + kfree(soc_dev_attr->revision);
> + return -ENODEV;

This should return PTR_ERR(soc_dev) instead.