Changeset a100457 in rtems
- Timestamp:
- 08/22/17 10:28:10 (6 years ago)
- Branches:
- 4.11
- Children:
- 63c6b06f
- Parents:
- 55d9d8c
- git-author:
- Daniel Hellstrom <daniel@…> (08/22/17 10:28:10)
- git-committer:
- Chris Johns <chrisj@…> (10/01/20 01:35:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/sparc/shared/1553/gr1553b.c
r55d9d8c ra100457 192 192 } 193 193 pnpinfo = &ambadev->info; 194 if ( pnpinfo->apb_slv == NULL ) 195 return DRVMGR_EIO; 194 196 regs = (struct gr1553b_regs *)pnpinfo->apb_slv->start; 195 197 … … 228 230 /* Get device information from AMBA PnP information */ 229 231 ambadev = (struct amba_dev_info *)dev->businfo; 230 if ( ambadev == NULL ) {231 return DRVMGR_FAIL;232 }233 232 pnpinfo = &ambadev->info; 234 233 regs = (struct gr1553b_regs *)pnpinfo->apb_slv->start; … … 256 255 /* Init Minor and Next */ 257 256 gr1553_list_add(&gr1553_rt_root, feat); 257 } 258 259 if ( priv->features == 0 ) { 260 /* no features in HW should never happen.. an I/O error? */ 261 free(priv); 262 return DRVMGR_EIO; 258 263 } 259 264
Note: See TracChangeset
for help on using the changeset viewer.