File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -435,10 +435,6 @@ int acpi_ffh_address_space_arch_setup(void *handler_ctxt, void **region_ctxt)
435
435
enum arm_smccc_conduit conduit ;
436
436
struct acpi_ffh_data * ffh_ctxt ;
437
437
438
- ffh_ctxt = kzalloc (sizeof (* ffh_ctxt ), GFP_KERNEL );
439
- if (!ffh_ctxt )
440
- return - ENOMEM ;
441
-
442
438
if (arm_smccc_get_version () < ARM_SMCCC_VERSION_1_2 )
443
439
return - EOPNOTSUPP ;
444
440
@@ -448,6 +444,10 @@ int acpi_ffh_address_space_arch_setup(void *handler_ctxt, void **region_ctxt)
448
444
return - EOPNOTSUPP ;
449
445
}
450
446
447
+ ffh_ctxt = kzalloc (sizeof (* ffh_ctxt ), GFP_KERNEL );
448
+ if (!ffh_ctxt )
449
+ return - ENOMEM ;
450
+
451
451
if (conduit == SMCCC_CONDUIT_SMC ) {
452
452
ffh_ctxt -> invoke_ffh_fn = __arm_smccc_smc ;
453
453
ffh_ctxt -> invoke_ffh64_fn = arm_smccc_1_2_smc ;
You can’t perform that action at this time.
0 commit comments