drm/i915: Avoid div-by-zero in clock calculation funcs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Dec 2013 17:00:45 +0000 (19:00 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Dec 2013 17:02:01 +0000 (18:02 +0100)
Check that the N and P dividers don't cause a divide by zero.

This shouldn't happen under normal circumstances, but can
happen eg. under simulation.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

No differences found