drm/radeon: switch to using late_initcall
authorDave Airlie <airlied@redhat.com>
Tue, 16 Jun 2009 21:41:23 +0000 (07:41 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 16 Jun 2009 21:44:04 +0000 (07:44 +1000)
This fixes an issue where we get inited before fbcon when built-in.

Ideally this should work as a non late_initcall, but this fixes it for now.
We also don't suggest people build this in (at least distro maintainers).

Reported-by: Ryan Hope <rmh3093@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_drv.c

index f70c351bb43e5770b9d18f76ad2a6fc1a2c7d1d4..c815a2cbf7b3ed328259ec9f4e855ccb3967ec39 100644 (file)
@@ -345,7 +345,7 @@ static void __exit radeon_exit(void)
        drm_exit(driver);
 }
 
-module_init(radeon_init);
+late_initcall(radeon_init);
 module_exit(radeon_exit);
 
 MODULE_AUTHOR(DRIVER_AUTHOR);