diff options
Diffstat (limited to 'register.c')
-rw-r--r-- | register.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,8 @@ int pcilib_add_registers(pcilib_t *ctx, size_t n, pcilib_register_description_t } + if (pcilib_model[ctx->model].registers) + if (ctx->model_info.registers == pcilib_model[ctx->model].registers) { for (n_present = 0; ctx->model_info.registers[n_present].bits; n_present++); for (size = 1024; size < 2 * (n + n_present + 1); size<<=1); |