|
@@ -45,36 +45,14 @@ static struct platform_driver * const omap_dss_drivers[] = {
|
|
|
#endif
|
|
|
};
|
|
|
|
|
|
-static struct platform_device *omap_drm_device;
|
|
|
-
|
|
|
static int __init omap_dss_init(void)
|
|
|
{
|
|
|
- int r;
|
|
|
-
|
|
|
- r = platform_register_drivers(omap_dss_drivers,
|
|
|
- ARRAY_SIZE(omap_dss_drivers));
|
|
|
- if (r)
|
|
|
- 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:
|
|
|
- platform_unregister_drivers(omap_dss_drivers,
|
|
|
- ARRAY_SIZE(omap_dss_drivers));
|
|
|
-
|
|
|
- return r;
|
|
|
+ return platform_register_drivers(omap_dss_drivers,
|
|
|
+ ARRAY_SIZE(omap_dss_drivers));
|
|
|
}
|
|
|
|
|
|
static void __exit omap_dss_exit(void)
|
|
|
{
|
|
|
- platform_device_unregister(omap_drm_device);
|
|
|
-
|
|
|
platform_unregister_drivers(omap_dss_drivers,
|
|
|
ARRAY_SIZE(omap_dss_drivers));
|
|
|
}
|