don't use devfs names: /dev/fb/0 -> /dev/fb0
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 4 Feb 2011 23:54:58 +0000 (00:54 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Fri, 4 Feb 2011 23:54:58 +0000 (00:54 +0100)
lib/gdi/bcm.cpp
lib/gdi/fb.h

index 12b5f22..ccf16f4 100644 (file)
@@ -23,10 +23,10 @@ static int exec_list(void);
 
 int bcm_accel_init(void)
 {
-       fb_fd = open("/dev/fb/0", O_RDWR);
+       fb_fd = open("/dev/fb0", O_RDWR);
        if (fb_fd < 0)
        {
-               perror("/dev/fb/0");
+               perror("/dev/fb0");
                return 1;
        }
        if (exec_list())
index 5447380..fcb5ff2 100644 (file)
@@ -19,7 +19,7 @@ class fbClass
        int m_number_of_pages;
        int m_phys_mem;
 #ifdef SWIG
-       fbClass(const char *fb="/dev/fb/0");
+       fbClass(const char *fb="/dev/fb0");
        ~fbClass();
 public:
 #else
@@ -41,7 +41,7 @@ public:
        unsigned int Stride() { return stride; }
        fb_cmap *CMAP() { return &cmap; }
 
-       fbClass(const char *fb="/dev/fb/0");
+       fbClass(const char *fb="/dev/fb0");
        ~fbClass();
        
                        // low level gfx stuff