Use the pre configured pci device from config also in write path. Cc: Jani Nikula <jani.nikula@xxxxxxxxx> Signed-off-by: Mika Kuoppala <mika.kuoppala@xxxxxxxxx> --- tools/intel_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/intel_reg.c b/tools/intel_reg.c index 190aa5b..2b60a83 100644 --- a/tools/intel_reg.c +++ b/tools/intel_reg.c @@ -439,7 +439,7 @@ static int intel_reg_write(struct config *config, int argc, char *argv[]) return EXIT_FAILURE; } - intel_register_access_init(intel_get_pci_device(), 0); + intel_register_access_init(config->pci_dev, 0); for (i = 1; i < argc; i += 2) { struct reg reg; -- 2.1.4 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx