amdgpu: Clean up amdgpu_parse_asic_ids error handling
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 30 Nov 2017 17:28:01 +0000 (18:28 +0100)
committerMichel Dänzer <michel@daenzer.net>
Fri, 1 Dec 2017 15:52:01 +0000 (16:52 +0100)
commit85c6b0b00ab894116880d2338776727ccff2d5c3
treea4d8d3738b77fb3ab1edc1cf04294671cf97baff
parentbc21168fa924d3fc4a000492e861f50a1a135b25
amdgpu: Clean up amdgpu_parse_asic_ids error handling

* Move error message printing into amdgpu_parse_asic_ids and make it
  return void
* Print only "Invalid format" error message if parse_one_line returns
  -EINVAL
* Use strerror instead of printing the (negative) error code in hex

Acked-by: Slava Abramov <slava.abramov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
amdgpu/amdgpu_asic_id.c
amdgpu/amdgpu_device.c
amdgpu/amdgpu_internal.h