OSDN Git Service

accel/habanalabs: split cdev creation to separate function
authorOded Gabbay <ogabbay@kernel.org>
Sun, 22 Jan 2023 12:59:11 +0000 (14:59 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:11 +0000 (13:29 +0200)
commit89859a8997d7ae37efbdea23f3e96bf6cf735e9f
treee82d259fc1e6a4ee2bdb7b62c548e8c9fe110c2c
parent4b9c2d3633fa9a019bbba6eb14d5d21b81769c95
accel/habanalabs: split cdev creation to separate function

Move the cdev creation code from the main hdev init function to
a separate function. This will make the code more readable once we
add the accel registration code (instead/in addition to legacy
cdev).

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
drivers/accel/habanalabs/common/device.c