drm/radeon/kms/atom: fix possible segfault in pm setup
authorAlexander Müller <serveralex@gmail.com>
Fri, 30 Dec 2011 17:55:48 +0000 (12:55 -0500)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 11 Jan 2012 18:34:11 +0000 (10:34 -0800)
commit3bb1d780e875ecceb7e0c384dc64bb3b8914e1c4
tree308247e553b7b387289e36118256f14d535aba0c
parenta97c937addbe575ff84131f7efb65734f7bd3f3e
drm/radeon/kms/atom: fix possible segfault in pm setup

commit 4376eee92e5a8332b470040e672ea99cd44c826a upstream.

If we end up with no power states, don't look up
current vddc.

fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=44130

agd5f: fix patch formatting

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change-Id: Ie5697e5158f562e3e7130e2880a5d0abea6cd4cd
Reviewed-on: http://git-master/r/74229
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
drivers/gpu/drm/radeon/radeon_atombios.c