habanalabs: show correct id in error print
authorOded Gabbay <oded.gabbay@gmail.com>
Sun, 1 Sep 2019 13:13:25 +0000 (16:13 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:28 +0000 (14:55 +0300)
commit307eae93d5ce3316b4c728408283da957350b2a8
treef57768fd89ae5fc7853ae6ed1bfa28a2f4e88078
parent4c172bbfaa4e1aa26dab58781301902c7b3e4ebc
habanalabs: show correct id in error print

If the initialization of a device failed, the driver prints an error
message with the id of the device. The device index on the file system is
that id divided by 2.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
drivers/misc/habanalabs/device.c