From: Tomi Valkeinen Date: Wed, 25 Feb 2015 08:23:58 +0000 (+0200) Subject: OMAPDSS: fix regression with display sysfs files X-Git-Tag: firefly_0821_release~176^2~2184^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a38bb793eaebe1178fbd8ef6ab66ccc062bad505;p=firefly-linux-kernel-4.4.55.git OMAPDSS: fix regression with display sysfs files omapdss's sysfs directories for displays used to have 'name' file, giving the name for the display. This file was later renamed to 'display_name' to avoid conflicts with i2c sysfs 'name' file. Looks like at least xserver-xorg-video-omap3 requires the 'name' file to be present. To fix the regression, this patch creates new kobjects for each display, allowing us to create sysfs directories for the displays. This way we have the whole directory for omapdss, and there will be no sysfs file clashes with the underlying display device's sysfs files. We can thus add the 'name' sysfs file back. Signed-off-by: Tomi Valkeinen Tested-by: NeilBrown --- diff --git a/drivers/video/fbdev/omap2/dss/display-sysfs.c b/drivers/video/fbdev/omap2/dss/display-sysfs.c index 5a2095a98ed8..12186557a9d4 100644 --- a/drivers/video/fbdev/omap2/dss/display-sysfs.c +++ b/drivers/video/fbdev/omap2/dss/display-sysfs.c @@ -28,44 +28,22 @@ #include