File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -3799,14 +3799,6 @@ static __init void of_unittest_overlay_high_level(void)
3799
3799
mutex_unlock (& of_mutex );
3800
3800
}
3801
3801
3802
- #else
3803
-
3804
- static inline __init void of_unittest_overlay_high_level (void ) {}
3805
-
3806
- #endif
3807
-
3808
- #ifdef CONFIG_PCI_DYNAMIC_OF_NODES
3809
-
3810
3802
static int of_unittest_pci_dev_num ;
3811
3803
static int of_unittest_pci_child_num ;
3812
3804
@@ -3954,6 +3946,9 @@ static void __init of_unittest_pci_node(void)
3954
3946
struct pci_dev * pdev = NULL ;
3955
3947
int rc ;
3956
3948
3949
+ if (!IS_ENABLED (CONFIG_PCI_DYNAMIC_OF_NODES ))
3950
+ return ;
3951
+
3957
3952
rc = pci_register_driver (& testdrv_driver );
3958
3953
unittest (!rc , "Failed to register pci test driver; rc = %d\n" , rc );
3959
3954
if (rc )
@@ -3987,7 +3982,10 @@ static void __init of_unittest_pci_node(void)
3987
3982
pci_dev_put (pdev );
3988
3983
}
3989
3984
#else
3990
- static void __init of_unittest_pci_node (void ) { }
3985
+
3986
+ static inline __init void of_unittest_overlay_high_level (void ) {}
3987
+ static inline __init void of_unittest_pci_node (void ) { }
3988
+
3991
3989
#endif
3992
3990
3993
3991
static int __init of_unittest (void )
You can’t perform that action at this time.
0 commit comments