dss.c (62b31a045757eac81fed94b19df47418a0818528) dss.c (a5d704d33245b0799947a3008f9f376dba4d5c91)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2009 Nokia Corporation
4 * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
5 *
6 * Some code and ideas taken from drivers/video/omap/ driver
7 * by Imre Deak.
8 */

--- 844 unchanged lines hidden (view full) ---

853
854int dss_runtime_get(struct dss_device *dss)
855{
856 int r;
857
858 DSSDBG("dss_runtime_get\n");
859
860 r = pm_runtime_get_sync(&dss->pdev->dev);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2009 Nokia Corporation
4 * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
5 *
6 * Some code and ideas taken from drivers/video/omap/ driver
7 * by Imre Deak.
8 */

--- 844 unchanged lines hidden (view full) ---

853
854int dss_runtime_get(struct dss_device *dss)
855{
856 int r;
857
858 DSSDBG("dss_runtime_get\n");
859
860 r = pm_runtime_get_sync(&dss->pdev->dev);
861 WARN_ON(r < 0);
862 return r < 0 ? r : 0;
861 if (WARN_ON(r < 0)) {
862 pm_runtime_put_noidle(&dss->pdev->dev);
863 return r;
864 }
865 return 0;
863}
864
865void dss_runtime_put(struct dss_device *dss)
866{
867 int r;
868
869 DSSDBG("dss_runtime_put\n");
870

--- 797 unchanged lines hidden ---
866}
867
868void dss_runtime_put(struct dss_device *dss)
869{
870 int r;
871
872 DSSDBG("dss_runtime_put\n");
873

--- 797 unchanged lines hidden ---