mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
If the CF physical base is 0, attach no CF devices. This fixes a warning
about a 0 passed to cvmx_phys_to_ptr on systems without a CF interface, such as the RSYS4GBE.
This commit is contained in:
parent
8680dc800f
commit
3ef3b736dc
1 changed files with 2 additions and 0 deletions
|
|
@ -622,6 +622,8 @@ static void cf_identify (driver_t *drv, device_t parent)
|
|||
return;
|
||||
|
||||
phys_base = cvmx_sysinfo_get()->compact_flash_common_base_addr;
|
||||
if (phys_base == 0)
|
||||
return;
|
||||
base_addr = cvmx_phys_to_ptr(phys_base);
|
||||
|
||||
for (bus_region = 0; bus_region < 8; bus_region++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue