File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ static struct list_node g_pci_device_list =
122
122
LIST_INITIAL_VALUE (g_pci_device_list );
123
123
static struct list_node g_pci_driver_list =
124
124
LIST_INITIAL_VALUE (g_pci_driver_list );
125
- static struct list_node g_pci_root_buses =
126
- LIST_INITIAL_VALUE (g_pci_root_buses );
125
+ static struct list_node g_pci_ctrl_list =
126
+ LIST_INITIAL_VALUE (g_pci_ctrl_list );
127
127
128
128
/****************************************************************************
129
129
* Private Functions
@@ -1189,7 +1189,7 @@ int pci_register_controller(FAR struct pci_controller_s *ctrl)
1189
1189
pci_register_bus_devices (bus );
1190
1190
1191
1191
nxmutex_lock (& g_pci_lock );
1192
- list_add_tail (& g_pci_root_buses , & bus -> node );
1192
+ list_add_tail (& g_pci_ctrl_list , & ctrl -> node );
1193
1193
nxmutex_unlock (& g_pci_lock );
1194
1194
1195
1195
return 0 ;
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ struct pci_controller_s
269
269
FAR const struct pci_ops_s * ops ;
270
270
271
271
FAR struct pci_bus_s * bus ;
272
+ struct list_node node ;
272
273
uint8_t busno ;
273
274
};
274
275
You can’t perform that action at this time.
0 commit comments