From: Dan Carpenter Date: Mon, 9 Aug 2010 19:59:42 +0000 (+0200) Subject: radeon: handle errors in radeon_hwmon_init() X-Git-Tag: v2.6.36-rc1~71^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d18abedfadbf462c107b0b782142558896a8ace;p=pandora-kernel.git radeon: handle errors in radeon_hwmon_init() Smatch complained that the ERR_PTR from hwmon_device_register() wasn't handled.  I added some error handling in radeon_hwmon_init() to silence the warning. Unfortunately errors from radeon_pm_init() aren't handled so this doesn't really make a difference beyond silencing the warning. Also I changed DRM_ERROR() to dev_err() which is the new preferred method. Signed-off-by: Dan Carpenter Signed-off-by: Dave Airlie --- Reading git-diff-tree failed