Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200637
b: refs/heads/master
c: 500ebb8
h: refs/heads/master
i:
  200635: e205112
v: v3
  • Loading branch information
Andres Salomon authored and Linus Torvalds committed Jun 29, 2010
1 parent c2735a0 commit d729aeb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d845ebf4cf9e985b1704b1f08b37f744b4ede13
refs/heads/master: 500ebb82b50194f97a53d17a152cfb734ced9f21
20 changes: 12 additions & 8 deletions trunk/drivers/video/geode/gxfb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static int vram;
static int vt_switch;

/* Modes relevant to the GX (taken from modedb.c) */
static struct fb_videomode gx_modedb[] __initdata = {
static struct fb_videomode gx_modedb[] __devinitdata = {
/* 640x480-60 VESA */
{ NULL, 60, 640, 480, 39682, 48, 16, 33, 10, 96, 2,
0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA },
Expand Down Expand Up @@ -110,14 +110,15 @@ static struct fb_videomode gx_modedb[] __initdata = {
#ifdef CONFIG_OLPC
#include <asm/olpc.h>

static struct fb_videomode gx_dcon_modedb[] __initdata = {
static struct fb_videomode gx_dcon_modedb[] __devinitdata = {
/* The only mode the DCON has is 1200x900 */
{ NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
FB_VMODE_NONINTERLACED, 0 }
};

static void __init get_modedb(struct fb_videomode **modedb, unsigned int *size)
static void __devinit get_modedb(struct fb_videomode **modedb,
unsigned int *size)
{
if (olpc_has_dcon()) {
*modedb = (struct fb_videomode *) gx_dcon_modedb;
Expand All @@ -129,7 +130,8 @@ static void __init get_modedb(struct fb_videomode **modedb, unsigned int *size)
}

#else
static void __init get_modedb(struct fb_videomode **modedb, unsigned int *size)
static void __devinit get_modedb(struct fb_videomode **modedb,
unsigned int *size)
{
*modedb = (struct fb_videomode *) gx_modedb;
*size = ARRAY_SIZE(gx_modedb);
Expand Down Expand Up @@ -226,7 +228,8 @@ static int gxfb_blank(int blank_mode, struct fb_info *info)
return gx_blank_display(info, blank_mode);
}

static int __init gxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev)
static int __devinit gxfb_map_video_memory(struct fb_info *info,
struct pci_dev *dev)
{
struct gxfb_par *par = info->par;
int ret;
Expand Down Expand Up @@ -290,7 +293,7 @@ static struct fb_ops gxfb_ops = {
.fb_imageblit = cfb_imageblit,
};

static struct fb_info * __init gxfb_init_fbinfo(struct device *dev)
static struct fb_info *__devinit gxfb_init_fbinfo(struct device *dev)
{
struct gxfb_par *par;
struct fb_info *info;
Expand Down Expand Up @@ -371,7 +374,8 @@ static int gxfb_resume(struct pci_dev *pdev)
}
#endif

static int __init gxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
static int __devinit gxfb_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
struct gxfb_par *par;
struct fb_info *info;
Expand Down Expand Up @@ -451,7 +455,7 @@ static int __init gxfb_probe(struct pci_dev *pdev, const struct pci_device_id *i
return ret;
}

static void gxfb_remove(struct pci_dev *pdev)
static void __devexit gxfb_remove(struct pci_dev *pdev)
{
struct fb_info *info = pci_get_drvdata(pdev);
struct gxfb_par *par = info->par;
Expand Down

0 comments on commit d729aeb

Please sign in to comment.