Skip to content

Commit

Permalink
drm/tilcdc: replace late_initcall with module_init
Browse files Browse the repository at this point in the history
Use module_init instead of late_initcall, as is the norm for modular
drivers.

module_init was used until 6e8de0b
("drm/tilcdc: add encoder slave (v2)") changed it to a late_initcall,
but it does not explain why. Tests show it's working properly with
module_init.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Guido Martínez authored and Dave Airlie committed Jul 8, 2014
1 parent 7cdcce9 commit 2023d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tilcdc/tilcdc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ static void __exit tilcdc_drm_fini(void)
tilcdc_tfp410_fini();
}

late_initcall(tilcdc_drm_init);
module_init(tilcdc_drm_init);
module_exit(tilcdc_drm_fini);

MODULE_AUTHOR("Rob Clark <robdclark@gmail.com");
Expand Down

0 comments on commit 2023d84

Please sign in to comment.