|
@@ -103,6 +103,8 @@ static void (*dss_output_drv_unreg_funcs[])(void) = {
|
|
|
dss_uninit_platform_driver,
|
|
|
};
|
|
|
|
|
|
+static struct platform_device *omap_drm_device;
|
|
|
+
|
|
|
static int __init omap_dss_init(void)
|
|
|
{
|
|
|
int r;
|
|
@@ -118,6 +120,12 @@ static int __init omap_dss_init(void)
|
|
|
goto err_reg;
|
|
|
}
|
|
|
|
|
|
+ omap_drm_device = platform_device_register_simple("omapdrm_", 0, NULL, 0);
|
|
|
+ if (IS_ERR(omap_drm_device)) {
|
|
|
+ r = PTR_ERR(omap_drm_device);
|
|
|
+ goto err_reg;
|
|
|
+ }
|
|
|
+
|
|
|
return 0;
|
|
|
|
|
|
err_reg:
|
|
@@ -135,6 +143,8 @@ static void __exit omap_dss_exit(void)
|
|
|
{
|
|
|
int i;
|
|
|
|
|
|
+ platform_device_unregister(omap_drm_device);
|
|
|
+
|
|
|
for (i = 0; i < ARRAY_SIZE(dss_output_drv_unreg_funcs); ++i)
|
|
|
dss_output_drv_unreg_funcs[i]();
|
|
|
|