diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-03-07 05:53:18 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 07:44:51 -0400 |
commit | 11436e1dd2aab1a33f81a3737ec8641788ec8543 (patch) | |
tree | 79d698da00da5dc465769dfab9f78656134714f8 /drivers/video/omap2/dss/dss.c | |
parent | 04c742c3dccac296fdc52b464bd0491ffe88de23 (diff) |
OMAPDSS: use platform_driver_probe for core/dispc/dss
The platform devices for omapdss, dss and dispc drivers are always
present, so we can use platform_driver_probe instead of
platform_driver_register.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss.c')
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 3a0655020252..c849d8bd5256 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -858,7 +858,6 @@ static const struct dev_pm_ops dss_pm_ops = { | |||
858 | }; | 858 | }; |
859 | 859 | ||
860 | static struct platform_driver omap_dsshw_driver = { | 860 | static struct platform_driver omap_dsshw_driver = { |
861 | .probe = omap_dsshw_probe, | ||
862 | .remove = omap_dsshw_remove, | 861 | .remove = omap_dsshw_remove, |
863 | .driver = { | 862 | .driver = { |
864 | .name = "omapdss_dss", | 863 | .name = "omapdss_dss", |
@@ -869,7 +868,7 @@ static struct platform_driver omap_dsshw_driver = { | |||
869 | 868 | ||
870 | int dss_init_platform_driver(void) | 869 | int dss_init_platform_driver(void) |
871 | { | 870 | { |
872 | return platform_driver_register(&omap_dsshw_driver); | 871 | return platform_driver_probe(&omap_dsshw_driver, omap_dsshw_probe); |
873 | } | 872 | } |
874 | 873 | ||
875 | void dss_uninit_platform_driver(void) | 874 | void dss_uninit_platform_driver(void) |