mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
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
@@ -1534,7 +1534,7 @@ static const struct dev_pm_ops dss_pm_ops = {
|
||||
.runtime_resume = dss_runtime_resume,
|
||||
};
|
||||
|
||||
static struct platform_driver omap_dsshw_driver = {
|
||||
struct platform_driver omap_dsshw_driver = {
|
||||
.probe = dss_probe,
|
||||
.remove = dss_remove,
|
||||
.shutdown = dss_shutdown,
|
||||
@@ -1545,13 +1545,3 @@ static struct platform_driver omap_dsshw_driver = {
|
||||
.suppress_bind_attrs = true,
|
||||
},
|
||||
};
|
||||
|
||||
int __init dss_init_platform_driver(void)
|
||||
{
|
||||
return platform_driver_register(&omap_dsshw_driver);
|
||||
}
|
||||
|
||||
void dss_uninit_platform_driver(void)
|
||||
{
|
||||
platform_driver_unregister(&omap_dsshw_driver);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user