pci_bus.c: Fix prototype/body mismatch

This commit is contained in:
Joel Sherrill 2012-09-05 12:43:37 -05:00
parent 9be3a10b4b
commit 816b85c6c2

View File

@ -68,9 +68,15 @@ legacy_pcib_maxslots(device_t dev)
/* read configuration space register */
#ifdef __rtems__
uint32_t
legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
u_int reg, int bytes)
#else
u_int32_t
legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
u_int reg, int bytes)
#endif
{
return(pci_cfgregread(bus, slot, func, reg, bytes));
}