forked from Imagelibrary/rtems
grlib: Add ambapp_common_info to derived types
This avoids a cast in DEV_TO_COMMON().
This commit is contained in:
@@ -54,7 +54,7 @@ static unsigned int ambapp_freq_calc(
|
||||
else
|
||||
freq_hz = freq_hz / ffact;
|
||||
}
|
||||
return ambapp_freq_calc(abus, ahb->ahbidx, freq_hz, inverse);
|
||||
return ambapp_freq_calc(abus, ahb->common.ahbidx, freq_hz, inverse);
|
||||
} else {
|
||||
/* Unknown bridge, impossible to calc frequency */
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user