gma500: medfield: fix build without CONFIG_BACKLIGHT_CLASS_DEVICE
drivers/built-in.o: In function `mdfld_dsi_connector_set_property': mdfld_dsi_output.c:(.text+0x6e909): undefined reference to `mdfld_set_brightness' make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
committed by
Dave Airlie
parent
e22057c859
commit
a1978f74da
@@ -244,7 +244,6 @@ static int mdfld_dsi_connector_set_property(struct drm_connector *connector,
|
|||||||
uint64_t value)
|
uint64_t value)
|
||||||
{
|
{
|
||||||
struct drm_encoder *encoder = connector->encoder;
|
struct drm_encoder *encoder = connector->encoder;
|
||||||
struct backlight_device *psb_bd;
|
|
||||||
|
|
||||||
if (!strcmp(property->name, "scaling mode") && encoder) {
|
if (!strcmp(property->name, "scaling mode") && encoder) {
|
||||||
struct psb_intel_crtc *psb_crtc =
|
struct psb_intel_crtc *psb_crtc =
|
||||||
@@ -301,11 +300,15 @@ static int mdfld_dsi_connector_set_property(struct drm_connector *connector,
|
|||||||
value))
|
value))
|
||||||
goto set_prop_error;
|
goto set_prop_error;
|
||||||
else {
|
else {
|
||||||
|
#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
|
||||||
|
struct backlight_device *psb_bd;
|
||||||
|
|
||||||
psb_bd = mdfld_get_backlight_device();
|
psb_bd = mdfld_get_backlight_device();
|
||||||
if (psb_bd) {
|
if (psb_bd) {
|
||||||
psb_bd->props.brightness = value;
|
psb_bd->props.brightness = value;
|
||||||
mdfld_set_brightness(psb_bd);
|
mdfld_set_brightness(psb_bd);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_prop_done:
|
set_prop_done:
|
||||||
|
Reference in New Issue
Block a user