Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Konsta Hölttä f11ca4c300 gpu: nvgpu: expose device creation
Allow gk20a_create_device() to happen outside the main ioctl logic and
rename it to have the modern nvgpu_ prefix. Add a separate function to
do cdev allocation and refactor the existing two callers slightly to
avoid repetition on the cdev struct initialization.

As a side effect, this modification fixes the error path that used to
not return an error if adding a device fails and also leaked the
allocated cdev memory.

Jira NVGPU-6788

Change-Id: Ia1f018b88d78fafdfcf4e95f6aa66e2368e58974
Signed-off-by: Konsta Hölttä <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2674426
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-03-01 00:08:37 -08:00
..
2022-02-04 22:02:33 -08:00
2020-12-15 14:13:28 -06:00
2019-02-01 09:45:57 -08:00
2021-08-11 01:55:08 -07:00
2021-06-28 22:39:06 -07:00
2022-01-28 04:50:12 -08:00
2021-12-15 06:05:25 -08:00
2021-12-15 06:05:25 -08:00
2022-03-01 00:08:37 -08:00
2022-03-01 00:08:37 -08:00
2022-02-09 00:38:21 -08:00
2022-02-01 09:50:45 -08:00
2022-01-13 12:35:36 -08:00