Commit 5cf06065 authored by Alejandro Concepcion-Rodriguez's avatar Alejandro Concepcion-Rodriguez Committed by Thomas Zimmermann
Browse files

drm: simpledrm: fix wrong unit with pixel clock

parent 842470c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -458,7 +458,7 @@ static struct drm_display_mode simpledrm_mode(unsigned int width,
{
	struct drm_display_mode mode = { SIMPLEDRM_MODE(width, height) };

	mode.clock = 60 /* Hz */ * mode.hdisplay * mode.vdisplay;
	mode.clock = mode.hdisplay * mode.vdisplay * 60 / 1000 /* kHz */;
	drm_mode_set_name(&mode);

	return mode;