backlight: add backlight type
[linux-2.6-block.git] / drivers / platform / x86 / compal-laptop.c
index 034572b980c99cb102e0aad04719bf6279baa75a..eb95878fa58335aa3a22bea204be4ecb28746046 100644 (file)
@@ -970,6 +970,7 @@ static int __init compal_init(void)
        if (!acpi_video_backlight_support()) {
                struct backlight_properties props;
                memset(&props, 0, sizeof(struct backlight_properties));
+               props.type = BACKLIGHT_PLATFORM;
                props.max_brightness = BACKLIGHT_LEVEL_MAX;
                compalbl_device = backlight_device_register(DRIVER_NAME,
                                                            NULL, NULL,