drm: omapdrm: Simplify platform registration
Currently, calls into each file are used to register the various platform drivers. Change this to a table of pointers to platform_driver structs to allow using platform_register_drivers. Signed-off-by: Andrew F. Davis <afd@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
bb5cdf8d1c
commit
d66c36a3ee
@@ -5658,7 +5658,7 @@ static const struct dev_pm_ops dsi_pm_ops = {
|
||||
.runtime_resume = dsi_runtime_resume,
|
||||
};
|
||||
|
||||
static struct platform_driver omap_dsihw_driver = {
|
||||
struct platform_driver omap_dsihw_driver = {
|
||||
.probe = dsi_probe,
|
||||
.remove = dsi_remove,
|
||||
.driver = {
|
||||
@@ -5668,13 +5668,3 @@ static struct platform_driver omap_dsihw_driver = {
|
||||
.suppress_bind_attrs = true,
|
||||
},
|
||||
};
|
||||
|
||||
int __init dsi_init_platform_driver(void)
|
||||
{
|
||||
return platform_driver_register(&omap_dsihw_driver);
|
||||
}
|
||||
|
||||
void dsi_uninit_platform_driver(void)
|
||||
{
|
||||
platform_driver_unregister(&omap_dsihw_driver);
|
||||
}
|
||||
|
Reference in New Issue
Block a user