mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
grlib: Add ambapp_plb()
Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
This commit is contained in:
@@ -132,7 +132,7 @@ static rtems_device_driver canmux_initialize(rtems_device_major_number major, rt
|
||||
strcpy(fs_name, CANMUX_DEVNAME);
|
||||
|
||||
/* Find core and initialize register pointer */
|
||||
if (!ambapp_find_apbslv(&ambapp_plb, VENDOR_GAISLER, GAISLER_CANMUX, &d)) {
|
||||
if (!ambapp_find_apbslv(ambapp_plb(), VENDOR_GAISLER, GAISLER_CANMUX, &d)) {
|
||||
printk("CAN_MUX: Failed to find CAN_MUX core\n\r");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user