|
|
if (apm_nv_dev[i] != NULL) pm_unregister(apm_nv_dev[i]); | if (apm_nv_dev[i] != NULL) pm_unregister(apm_nv_dev[i]); |
#endif | #endif |
| |
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23) |
if (unregister_chrdev(nv_major, "nvidia") < 0) | if (unregister_chrdev(nv_major, "nvidia") < 0) |
nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n"); | nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n"); |
|
#else |
|
unregister_chrdev(nv_major, "nvidia"); |
|
#endif |
| |
for (i = 0; i < num_nv_devices; i++) | for (i = 0; i < num_nv_devices; i++) |
{ | { |
|
|
| |
nv_printf(NV_DBG_INFO, "NVRM: nvidia_exit_module\n"); | nv_printf(NV_DBG_INFO, "NVRM: nvidia_exit_module\n"); |
| |
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23) |
if (unregister_chrdev(nv_major, "nvidia") < 0) | if (unregister_chrdev(nv_major, "nvidia") < 0) |
nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n"); | nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n"); |
|
#else |
|
unregister_chrdev(nv_major, "nvidia"); |
|
#endif |
| |
for (i = 0; i < num_nv_devices; i++) | for (i = 0; i < num_nv_devices; i++) |
{ | { |