• Antonino Daplas's avatar
    [PATCH] fbdev: Pass struct device to class_simple_device_add · 03f779b6
    Antonino Daplas authored
    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: default avatarAntonino Daplas <adaplas@pol.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    03f779b6
cyber2000fb.c 42.4 KB