diff mbox

[PATCH/RFC,9/7] drm: omapdrm: Don't forward set_min_bus_tput() to no-op platform code

Message ID 1481680684-11585-2-git-send-email-laurent.pinchart@ideasonboard.com
State New, archived
Headers show

Commit Message

Laurent Pinchart Dec. 14, 2016, 1:58 a.m. UTC
The OMAP implementation of the set_min_bus_tput() API is a no-op.
There's no point in forwarding the driver calls to the platform code.
Remove the use of the related platform data callback, but keep the
internal function as a reminder that the feature will need to be
implemented when the OMAP platform will provide support.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 drivers/gpu/drm/omapdrm/dss/core.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff mbox


diff --git a/drivers/gpu/drm/omapdrm/dss/core.c b/drivers/gpu/drm/omapdrm/dss/core.c
index b173f2889819..5dfb79c02ab3 100644
--- a/drivers/gpu/drm/omapdrm/dss/core.c
+++ b/drivers/gpu/drm/omapdrm/dss/core.c
@@ -78,12 +78,8 @@  struct platform_device *dss_get_core_pdev(void)
 int dss_set_min_bus_tput(struct device *dev, unsigned long tput)
-	struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
-	if (pdata->set_min_bus_tput)
-		return pdata->set_min_bus_tput(dev, tput);
-	else
-		return 0;
+	/* To be implemented when the OMAP platform provides this feature. */
+	return 0;