]> git.hungrycats.org Git - linux/commit
[PATCH] fbdev: Pass struct device to class_simple_device_add
authorAntonino Daplas <adaplas@hotpop.com>
Tue, 19 Oct 2004 01:06:15 +0000 (18:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:06:15 +0000 (18:06 -0700)
commit03f779b64855258598a4c2554a3282015bea97a4
treebbd27aaeb2489b026a5a9dab80a475b10125530b
parent899a94d126cb9ede8b55a168f72e1b7ab5e00c92
[PATCH] fbdev: Pass struct device to class_simple_device_add

Swsusp turns off the display when a power-management-enabled framebuffer
driver is used.  According to Nigel Cunningham <ncunningham@linuxmail.org>,
the fix may involve the following:

"...I thought the best approach would be to use device classes to find the
struct dev for the frame buffer driver, and then use the same code I use for
storage devices to avoid suspending the frame buffer until later..."

Changes:

- pass info->device to class_simple_device_add()
- add struct device *device to struct fb_info
- store struct device in framebuffer_alloc()
- for drivers not using framebuffer_alloc(), store the struct during
  initalization
- port i810fb and rivafb to use framebuffer_alloc()

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 files changed:
drivers/video/aty/atyfb_base.c
drivers/video/chipsfb.c
drivers/video/cyber2000fb.c
drivers/video/fbmem.c
drivers/video/fbsysfs.c
drivers/video/i810/i810_main.c
drivers/video/igafb.c
drivers/video/imsttfb.c
drivers/video/kyro/fbdev.c
drivers/video/matrox/matroxfb_base.c
drivers/video/pvr2fb.c
drivers/video/radeonfb.c
drivers/video/riva/fbdev.c
drivers/video/sstfb.c
drivers/video/tgafb.c
drivers/video/tridentfb.c
include/linux/fb.h