diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-09 21:59:42 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-10 10:46:51 +1000 |
commit | 0d18abedfadbf462c107b0b782142558896a8ace (patch) | |
tree | bad078c2cf56d87d41b3996750259475505a000b /drivers/gpu/drm/i915/intel_display.c | |
parent | 26b5bc986423cf3887e09188cb662ed651c5374d (diff) | |
download | lwn-0d18abedfadbf462c107b0b782142558896a8ace.tar.gz lwn-0d18abedfadbf462c107b0b782142558896a8ace.zip |
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 <error27@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
0 files changed, 0 insertions, 0 deletions