Skip to contentSkip to conversation

A very little patch to make rivafb to be compiled

PATCH In review Evgeniy Polyakov 2 participants 2 messages Jan 6, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 A very little patch to make rivafb to be compiled

Hello, Ani Joshi and other hackers.

Here is patch against 2.5.2-pre9 wich make rivafb to be compiled:

--- /usr/src/linux-2.5.2-pre/drivers/video/riva/fbdev.c~ Wed Nov 14
17:52:20 2001
+++ /usr/src/linux-2.5.2-pre/drivers/video/riva/fbdev.c Sun Jan 6 15:45:04 2002
@@ -1811,7 +1811,7 @@

        info = &rinfo->info;
 
        strcpy(info->modename, rinfo->drvr_name);
-       info->node = -1;
+       info->node = to_kdev_t(-1);
        info->flags = FBINFO_FLAG_DEFAULT;
        info->fbops = &riva_fb_ops;

Now it works good.

Thanks all for your work.

---
WBR. //s0mbre

#1 lore raw
Quoted 10 lines · Evgeniy Polyakov

Hello, Ani Joshi and other hackers.

Here is patch against 2.5.2-pre9 wich make rivafb to be compiled:

--- /usr/src/linux-2.5.2-pre/drivers/video/riva/fbdev.c~ Wed Nov 14
17:52:20 2001
+++ /usr/src/linux-2.5.2-pre/drivers/video/riva/fbdev.c Sun Jan 6 15:45:04 2002

Review line 1816

Quoted 7 lines
(quoted diff) +1 -1
@@ -1811,7 +1811,7 @@
        info = &rinfo->info;
 
        strcpy(info->modename, rinfo->drvr_name);
-       info->node = -1;
+       info->node = to_kdev_t(-1);
        info->flags = FBINFO_FLAG_DEFAULT;
        info->fbops = &riva_fb_ops;

This should be assigned to "NODEV" not "to_kdev_t(-1)".

Several fbdev drivers need this change.

Jeff

Signature · 4 lines
Jeff Garzik      | Alternate titles for LOTR:
Building 1024    | Fast Times at Uruk-Hai
MandrakeSoft     | The Took, the Elf, His Daughter and Her Lover
                 | Samwise Gamgee: International Hobbit of Mystery