drm/radeon/kms: fix divide by 0 in clocks code
authorDave Airlie <airlied@redhat.com>
Mon, 30 Nov 2009 23:13:40 +0000 (09:13 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Dec 2009 01:37:16 +0000 (11:37 +1000)
commit4b30b87042aa71ed8682e4df622a10456796fccd
treee7795fabed90dbc7e2155a48c01dafb4fb1a463d
parent7dde8a19656ddec769b609e8b5662aa7243b8b6a
drm/radeon/kms: fix divide by 0 in clocks code

If the chip isn't initialised properly this can happen.
also fix return value in combios clocks function.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_clocks.c
drivers/gpu/drm/radeon/radeon_combios.c