]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: make rc6 in sysfs functions conditional
authorHunt Xu <mhuntxu@gmail.com>
Sun, 1 Jul 2012 03:45:07 +0000 (03:45 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 6 Aug 2012 17:31:33 +0000 (19:31 +0200)
commit9f9e6192be83880a967e917d7e6b073f9d7cf879
tree0130174f69dde88a67d6e17dee36fff02d96c2f1
parentf4f3f47c461e97b34d92d5c13517a6bbe753ea46
drm/i915: make rc6 in sysfs functions conditional

Commit 00e2fa5c4a89e1381e36d5a99ef5f4766ffb3efa merges rc6 information
into the power group. However, when compiled with CONFIG_PM not set,
modprobing i915 would taint since power_group_name is defined as NULL.

This patch makes these rc6 in sysfs functions conditional upon the
definition of the CONFIG_PM macro to avoid the above-mentioned problem.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=45181
Cc: stable@vger.kernel.org
Tested-by: Kris Karas <bugs-a12@moonlit-rail.com>
Signed-off-by: Hunt Xu <mhuntxu@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_sysfs.c