diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-26 15:13:06 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-26 15:16:01 +0200 |
commit | 71ac5de5a4473d20fb11cb454f62d8e5c90f020c (patch) | |
tree | d90ebcf85b8f7f674aeb0a2d2df81a430673de66 /lib/intel_reg_map.c | |
parent | baa6f8b34f54b68c15fc86d86de77d954e458aac (diff) |
lib/intel_* Use igt checks and macros
Various stuff all over. Most done with the igt.cocci spatch, but
with a few fixups by hand. And add igt_core.h includes where needed.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/intel_reg_map.c')
-rw-r--r-- | lib/intel_reg_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/intel_reg_map.c b/lib/intel_reg_map.c index 402274ba..0e2ee06c 100644 --- a/lib/intel_reg_map.c +++ b/lib/intel_reg_map.c @@ -29,8 +29,10 @@ #include <stdarg.h> #include <stdlib.h> #include <sys/types.h> + #include "intel_io.h" #include "intel_chipset.h" +#include "igt_core.h" static struct intel_register_range gen_bwcl_register_map[] = { {0x00000000, 0x00000fff, INTEL_RANGE_RW}, @@ -141,9 +143,7 @@ intel_get_register_map(uint32_t devid) map.map = gen4_register_map; map.top = 0x80000; } else { - fprintf(stderr, "Gen2/3 Ranges are not supported. Please use " - "unsafe access."); - abort(); + igt_fail_on("Gen2/3 Ranges are not supported. Please use ""unsafe access."); } map.alignment_mask = 0x3; |