Re: [PATCH 6/8] firmware: arm_scmi: Make OPTEE transport a standalone driver

From: Cristian Marussi
Date: Tue Jul 09 2024 - 05:56:20 EST


On Tue, Jul 09, 2024 at 04:21:46AM +0200, Dan Carpenter wrote:
> On Sun, Jul 07, 2024 at 01:20:53AM +0100, Cristian Marussi wrote:
> > static int scmi_optee_service_probe(struct device *dev)
> > {
> > struct scmi_optee_agent *agent;
> > @@ -555,7 +553,7 @@ static int scmi_optee_service_probe(struct device *dev)
> > smp_mb();
> > scmi_optee_private = agent;
> >
> > - return 0;
> > + return platform_driver_register(&scmi_optee_driver);

Hi Dan,

thanks for having a look !

>
> There needs to be some cleanup if platform_driver_register() fails.
>


Yes, indeed....also smatch/sparse screamed a lot in some other
places...I will rework in V2.

Thanks,
Cristian