[PATCH 6/8] firmware: arm_scmi: Make OPTEE transport a standalone driver
Cristian Marussi
cristian.marussi at arm.com
Tue Jul 9 02:55:42 PDT 2024
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
More information about the linux-arm-kernel
mailing list