[Openpvrsgx-devgroup] [PATCH 2/4] pvr-drv: Fix warning from duplicate pm_runtime_enable()

Tony Lindgren tony at atomide.com
Fri Nov 15 02:05:11 CET 2019


Let's just comment the old functions out and add a comment that
they have been dealt with.

Signed-off-by: Tony Lindgren <tony at atomide.com>
---
 .../eurasia_km/services4/system/omap/sysutils_linux.c       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/pvr/1.14.3699939/eurasia_km/services4/system/omap/sysutils_linux.c b/drivers/staging/pvr/1.14.3699939/eurasia_km/services4/system/omap/sysutils_linux.c
--- a/drivers/staging/pvr/1.14.3699939/eurasia_km/services4/system/omap/sysutils_linux.c
+++ b/drivers/staging/pvr/1.14.3699939/eurasia_km/services4/system/omap/sysutils_linux.c
@@ -639,7 +639,8 @@ IMG_VOID DisableSystemClocks(SYS_DATA *psSysData)
 PVRSRV_ERROR SysPMRuntimeRegister(void)
 {
 #if defined(LDM_PLATFORM) && !defined(PVR_DRI_DRM_NOT_PCI)
-	pm_runtime_enable(&gpsPVRLDMDev->dev);
+	/* Done, see top level pvr-drv.c */
+	//pm_runtime_enable(&gpsPVRLDMDev->dev);
 #endif
 	return PVRSRV_OK;
 }
@@ -647,7 +648,8 @@ PVRSRV_ERROR SysPMRuntimeRegister(void)
 PVRSRV_ERROR SysPMRuntimeUnregister(void)
 {
 #if defined(LDM_PLATFORM) && !defined(PVR_DRI_DRM_NOT_PCI)
-	pm_runtime_disable(&gpsPVRLDMDev->dev);
+	/* Done, see top level pvr-drv.c */
+	//pm_runtime_disable(&gpsPVRLDMDev->dev);
 #endif
 	return PVRSRV_OK;
 }
-- 
2.23.0


More information about the openpvrsgx-devgroup mailing list