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:
Juli Mallett 2012-10-31 04:23:36 +00:00
parent 8680dc800f
commit 3ef3b736dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242389

View File

@ -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++)