diff options
Diffstat (limited to 'drivers/char/drm/drm_drv.c')
-rw-r--r-- | drivers/char/drm/drm_drv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/drm/drm_drv.c b/drivers/char/drm/drm_drv.c index 44a46268b02b..fc6e7646cd61 100644 --- a/drivers/char/drm/drm_drv.c +++ b/drivers/char/drm/drm_drv.c | |||
@@ -386,19 +386,19 @@ static int __init drm_core_init(void) | |||
386 | DRM_INFO("Initialized %s %d.%d.%d %s\n", | 386 | DRM_INFO("Initialized %s %d.%d.%d %s\n", |
387 | CORE_NAME, CORE_MAJOR, CORE_MINOR, CORE_PATCHLEVEL, CORE_DATE); | 387 | CORE_NAME, CORE_MAJOR, CORE_MINOR, CORE_PATCHLEVEL, CORE_DATE); |
388 | return 0; | 388 | return 0; |
389 | err_p3: | 389 | err_p3: |
390 | drm_sysfs_destroy(drm_class); | 390 | drm_sysfs_destroy(); |
391 | err_p2: | 391 | err_p2: |
392 | unregister_chrdev(DRM_MAJOR, "drm"); | 392 | unregister_chrdev(DRM_MAJOR, "drm"); |
393 | drm_free(drm_heads, sizeof(*drm_heads) * drm_cards_limit, DRM_MEM_STUB); | 393 | drm_free(drm_heads, sizeof(*drm_heads) * drm_cards_limit, DRM_MEM_STUB); |
394 | err_p1: | 394 | err_p1: |
395 | return ret; | 395 | return ret; |
396 | } | 396 | } |
397 | 397 | ||
398 | static void __exit drm_core_exit(void) | 398 | static void __exit drm_core_exit(void) |
399 | { | 399 | { |
400 | remove_proc_entry("dri", NULL); | 400 | remove_proc_entry("dri", NULL); |
401 | drm_sysfs_destroy(drm_class); | 401 | drm_sysfs_destroy(); |
402 | 402 | ||
403 | unregister_chrdev(DRM_MAJOR, "drm"); | 403 | unregister_chrdev(DRM_MAJOR, "drm"); |
404 | 404 | ||