From: 黄涛 Date: Tue, 25 Feb 2014 10:50:08 +0000 (+0800) Subject: pwm-backlight: set default devname as rk28_bl, to make Android happy X-Git-Tag: firefly_0821_release~6267 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0dce12aaaa774d4e83ee82cada96e2e68bb5a320;p=firefly-linux-kernel-4.4.55.git pwm-backlight: set default devname as rk28_bl, to make Android happy --- diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 40b130fe1c6e..209d5a085f9d 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -301,6 +301,9 @@ static int pwm_backlight_probe(struct platform_device *pdev) memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_RAW; props.max_brightness = data->max_brightness; +#ifdef CONFIG_ARCH_ROCKCHIP + dev_set_name(&pdev->dev, "rk28_bl"); +#endif bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev, pb, &pwm_backlight_ops, &props); if (IS_ERR(bl)) {