Merge branch 'fbdev/udlfb'
authorPaul Mundt <lethal@linux-sh.org>
Thu, 6 Jan 2011 09:10:09 +0000 (18:10 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 6 Jan 2011 09:10:09 +0000 (18:10 +0900)
1  2 
drivers/video/Kconfig
drivers/video/Makefile
drivers/video/udlfb.c

diff --combined drivers/video/Kconfig
@@@ -186,14 -186,6 +186,14 @@@ config FB_SYS_FOP
         depends on FB
         default n
  
 +config FB_WMT_GE_ROPS
 +      tristate
 +      depends on FB
 +      default n
 +      ---help---
 +        Include functions for accelerated rectangle filling and area
 +        copying using WonderMedia Graphics Engine operations.
 +
  config FB_DEFERRED_IO
        bool
        depends on FB
@@@ -643,72 -635,6 +643,72 @@@ config FB_BFIN_LQ035Q
          To compile this driver as a module, choose M here: the
          module will be called bfin-lq035q1-fb.
  
 +config FB_BF537_LQ035
 +      tristate "SHARP LQ035 TFT LCD (BF537 STAMP)"
 +      depends on FB && (BF534 || BF536 || BF537) && I2C_BLACKFIN_TWI
 +      select FB_CFB_FILLRECT
 +      select FB_CFB_COPYAREA
 +      select FB_CFB_IMAGEBLIT
 +      select BFIN_GPTIMERS
 +      help
 +        This is the framebuffer device for a SHARP LQ035Q7DB03 TFT LCD
 +        attached to a BF537.
 +
 +        To compile this driver as a module, choose M here: the
 +        module will be called bf537-lq035.
 +
 +config FB_BFIN_7393
 +      tristate "Blackfin ADV7393 Video encoder"
 +      depends on FB && BLACKFIN
 +      select I2C
 +      select FB_CFB_FILLRECT
 +      select FB_CFB_COPYAREA
 +      select FB_CFB_IMAGEBLIT
 +      help
 +        This is the framebuffer device for a ADV7393 video encoder
 +        attached to a Blackfin on the PPI port.
 +        If your Blackfin board has a ADV7393 select Y.
 +
 +        To compile this driver as a module, choose M here: the
 +        module will be called bfin_adv7393fb.
 +
 +choice
 +      prompt  "Video mode support"
 +      depends on FB_BFIN_7393
 +      default NTSC
 +
 +config NTSC
 +      bool 'NTSC 720x480'
 +
 +config PAL
 +      bool 'PAL 720x576'
 +
 +config NTSC_640x480
 +      bool 'NTSC 640x480 (Experimental)'
 +
 +config PAL_640x480
 +      bool 'PAL 640x480 (Experimental)'
 +
 +config NTSC_YCBCR
 +      bool 'NTSC 720x480 YCbCR input'
 +
 +config PAL_YCBCR
 +      bool 'PAL 720x576 YCbCR input'
 +
 +endchoice
 +
 +choice
 +      prompt  "Size of ADV7393 frame buffer memory Single/Double Size"
 +      depends on (FB_BFIN_7393)
 +      default ADV7393_1XMEM
 +
 +config ADV7393_1XMEM
 +      bool 'Single'
 +
 +config ADV7393_2XMEM
 +      bool 'Double'
 +endchoice
 +
  config FB_STI
        tristate "HP STI frame buffer device support"
        depends on FB && PARISC
@@@ -824,14 -750,24 +824,14 @@@ config FB_N41
  config FB_HGA
        tristate "Hercules mono graphics support"
        depends on FB && X86
 -      select FB_CFB_FILLRECT
 -      select FB_CFB_COPYAREA
 -      select FB_CFB_IMAGEBLIT
        help
          Say Y here if you have a Hercules mono graphics card.
  
          To compile this driver as a module, choose M here: the
          module will be called hgafb.
  
 -        As this card technology is 15 years old, most people will answer N
 -        here.
 -
 -config FB_HGA_ACCEL
 -      bool "Hercules mono Acceleration functions (EXPERIMENTAL)"
 -      depends on FB_HGA && EXPERIMENTAL
 -      ---help---
 -      This will compile the Hercules mono graphics with
 -      acceleration functions.
 +        As this card technology is at least 25 years old,
 +        most people will answer N here.
  
  config FB_SGIVW
        tristate "SGI Visual Workstation framebuffer support"
@@@ -1786,24 -1722,6 +1786,24 @@@ config FB_AU120
          various panels and CRTs by passing in kernel cmd line option
          au1200fb:panel=<name>.
  
 +config FB_VT8500
 +      bool "VT8500 LCD Driver"
 +      depends on (FB = y) && ARM && ARCH_VT8500 && VTWM_VERSION_VT8500
 +      select FB_WMT_GE_ROPS
 +      select FB_SYS_IMAGEBLIT
 +      help
 +        This is the framebuffer driver for VIA VT8500 integrated LCD
 +        controller.
 +
 +config FB_WM8505
 +      bool "WM8505 frame buffer support"
 +      depends on (FB = y) && ARM && ARCH_VT8500 && VTWM_VERSION_WM8505
 +      select FB_WMT_GE_ROPS
 +      select FB_SYS_IMAGEBLIT
 +      help
 +        This is the framebuffer driver for WonderMedia WM8505
 +        integrated LCD controller.
 +
  source "drivers/video/geode/Kconfig"
  
  config FB_HIT
@@@ -2116,6 -2034,20 +2116,20 @@@ config FB_SM50
  
          If unsure, say N.
  
+ config FB_UDL
+       tristate "Displaylink USB Framebuffer support"
+       depends on FB && USB
+       select FB_MODE_HELPERS
+       select FB_SYS_FILLRECT
+       select FB_SYS_COPYAREA
+       select FB_SYS_IMAGEBLIT
+       select FB_SYS_FOPS
+       select FB_DEFERRED_IO
+       ---help---
+         This is a kernel framebuffer driver for DisplayLink USB devices.
+         Supports fbdev clients like xf86-video-fbdev, kdrive, fbi, and
+         mplayer -vo fbdev. Supports all USB 2.0 era DisplayLink devices.
+         To compile as a module, choose M here: the module name is udlfb.
  
  config FB_PNX4008_DUM
        tristate "Display Update Module support on Philips PNX4008 board"
diff --combined drivers/video/Makefile
@@@ -26,7 -26,6 +26,7 @@@ obj-$(CONFIG_FB_SVGALIB)       += svgal
  obj-$(CONFIG_FB_MACMODES)      += macmodes.o
  obj-$(CONFIG_FB_DDC)           += fb_ddc.o
  obj-$(CONFIG_FB_DEFERRED_IO)   += fb_defio.o
 +obj-$(CONFIG_FB_WMT_GE_ROPS)   += wmt_ge_rops.o
  
  # Hardware specific drivers go first
  obj-$(CONFIG_FB_AMIGA)            += amifb.o c2p_planar.o
@@@ -105,8 -104,6 +105,8 @@@ obj-$(CONFIG_FB_W100)                += w100fb.
  obj-$(CONFIG_FB_TMIO)           += tmiofb.o
  obj-$(CONFIG_FB_AU1100)                 += au1100fb.o
  obj-$(CONFIG_FB_AU1200)                 += au1200fb.o
 +obj-$(CONFIG_FB_VT8500)                 += vt8500lcdfb.o
 +obj-$(CONFIG_FB_WM8505)                 += wm8505fb.o
  obj-$(CONFIG_FB_PMAG_AA)        += pmag-aa-fb.o
  obj-$(CONFIG_FB_PMAG_BA)        += pmag-ba-fb.o
  obj-$(CONFIG_FB_PMAGB_B)        += pmagb-b-fb.o
@@@ -125,6 -122,7 +125,7 @@@ obj-$(CONFIG_FB_PNX4008_DUM_RGB)  += pn
  obj-$(CONFIG_FB_IBM_GXT4500)    += gxt4500.o
  obj-$(CONFIG_FB_PS3)            += ps3fb.o
  obj-$(CONFIG_FB_SM501)            += sm501fb.o
+ obj-$(CONFIG_FB_UDL)            += udlfb.o
  obj-$(CONFIG_FB_XILINX)           += xilinxfb.o
  obj-$(CONFIG_SH_MIPI_DSI)       += sh_mipi_dsi.o
  obj-$(CONFIG_FB_SH_MOBILE_HDMI)         += sh_mobile_hdmi.o
@@@ -144,11 -142,9 +145,11 @@@ obj-$(CONFIG_FB_VESA)             += ve
  obj-$(CONFIG_FB_EFI)              += efifb.o
  obj-$(CONFIG_FB_VGA16)            += vga16fb.o
  obj-$(CONFIG_FB_OF)               += offb.o
 +obj-$(CONFIG_FB_BF537_LQ035)      += bf537-lq035.o
  obj-$(CONFIG_FB_BF54X_LQ043)    += bf54x-lq043fb.o
  obj-$(CONFIG_FB_BFIN_LQ035Q1)     += bfin-lq035q1-fb.o
  obj-$(CONFIG_FB_BFIN_T350MCQB)          += bfin-t350mcqb-fb.o
 +obj-$(CONFIG_FB_BFIN_7393)        += bfin_adv7393fb.o
  obj-$(CONFIG_FB_MX3)            += mx3fb.o
  obj-$(CONFIG_FB_DA8XX)                  += da8xx-fb.o
  
diff --combined drivers/video/udlfb.c
@@@ -16,6 -16,8 +16,8 @@@
   * from Florian Echtler, Henrik Bjerregaard Pedersen, and others.
   */
  
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  #include <linux/module.h>
  #include <linux/kernel.h>
  #include <linux/init.h>
@@@ -26,8 -28,8 +28,8 @@@
  #include <linux/vmalloc.h>
  #include <linux/slab.h>
  #include <linux/delay.h>
- #include "udlfb.h"
+ #include <video/udlfb.h>
+ #include "edid.h"
  
  static struct fb_fix_screeninfo dlfb_fix = {
        .id =           "udlfb",
@@@ -40,9 -42,7 +42,7 @@@
  };
  
  static const u32 udlfb_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST |
- #ifdef FBINFO_VIRTFB
                FBINFO_VIRTFB |
- #endif
                FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT |
                FBINFO_HWACCEL_COPYAREA | FBINFO_MISC_ALWAYS_SETPAR;
  
@@@ -293,7 -293,7 +293,7 @@@ static int dlfb_ops_mmap(struct fb_inf
  
        pos = (unsigned long)info->fix.smem_start + offset;
  
-       dl_notice("mmap() framebuffer addr:%lu size:%lu\n",
+       pr_notice("mmap() framebuffer addr:%lu size:%lu\n",
                  pos, size);
  
        while (size > 0) {
@@@ -595,18 -595,6 +595,6 @@@ error
        return 0;
  }
  
- static ssize_t dlfb_ops_read(struct fb_info *info, char __user *buf,
-                        size_t count, loff_t *ppos)
- {
-       ssize_t result = -ENOSYS;
- #if defined CONFIG_FB_SYS_FOPS || defined CONFIG_FB_SYS_FOPS_MODULE
-       result = fb_sys_read(info, buf, count, ppos);
- #endif
-       return result;
- }
  /*
   * Path triggered by usermode clients who write to filesystem
   * e.g. cat filename > /dev/fb1
  static ssize_t dlfb_ops_write(struct fb_info *info, const char __user *buf,
                          size_t count, loff_t *ppos)
  {
-       ssize_t result = -ENOSYS;
+       ssize_t result;
        struct dlfb_data *dev = info->par;
        u32 offset = (u32) *ppos;
  
- #if defined CONFIG_FB_SYS_FOPS || defined CONFIG_FB_SYS_FOPS_MODULE
        result = fb_sys_write(info, buf, count, ppos);
  
        if (result > 0) {
                dlfb_handle_damage(dev, 0, start, info->var.xres,
                        lines, info->screen_base);
        }
- #endif
  
        return result;
  }
@@@ -644,14 -629,10 +629,10 @@@ static void dlfb_ops_copyarea(struct fb
  
        struct dlfb_data *dev = info->par;
  
- #if defined CONFIG_FB_SYS_COPYAREA || defined CONFIG_FB_SYS_COPYAREA_MODULE
        sys_copyarea(info, area);
  
        dlfb_handle_damage(dev, area->dx, area->dy,
                        area->width, area->height, info->screen_base);
- #endif
  }
  
  static void dlfb_ops_imageblit(struct fb_info *info,
  {
        struct dlfb_data *dev = info->par;
  
- #if defined CONFIG_FB_SYS_IMAGEBLIT || defined CONFIG_FB_SYS_IMAGEBLIT_MODULE
        sys_imageblit(info, image);
  
        dlfb_handle_damage(dev, image->dx, image->dy,
                        image->width, image->height, info->screen_base);
- #endif
  }
  
  static void dlfb_ops_fillrect(struct fb_info *info,
  {
        struct dlfb_data *dev = info->par;
  
- #if defined CONFIG_FB_SYS_FILLRECT || defined CONFIG_FB_SYS_FILLRECT_MODULE
        sys_fillrect(info, rect);
  
        dlfb_handle_damage(dev, rect->dx, rect->dy, rect->width,
                              rect->height, info->screen_base);
- #endif
  }
  
- #ifdef CONFIG_FB_DEFERRED_IO
  /*
   * NOTE: fb_defio.c is holding info->fbdefio.mutex
   *   Touching ANY framebuffer memory that triggers a page fault
@@@ -747,8 -718,6 +718,6 @@@ error
                   &dev->cpu_kcycles_used);
  }
  
- #endif
  static int dlfb_get_edid(struct dlfb_data *dev, char *edid, int len)
  {
        int i;
                                    (0x80 | (0x02 << 5)), i << 8, 0xA1, rbuf, 2,
                                    HZ);
                if (ret < 1) {
-                       dl_err("Read EDID byte %d failed err %x\n", i, ret);
+                       pr_err("Read EDID byte %d failed err %x\n", i, ret);
                        i--;
                        break;
                }
@@@ -881,7 -850,6 +850,6 @@@ static int dlfb_ops_open(struct fb_inf
  
        kref_get(&dev->kref);
  
- #ifdef CONFIG_FB_DEFERRED_IO
        if (fb_defio && (info->fbdefio == NULL)) {
                /* enable defio at last moment if not disabled by client */
  
                info->fbdefio = fbdefio;
                fb_deferred_io_init(info);
        }
- #endif
  
-       dl_notice("open /dev/fb%d user=%d fb_info=%p count=%d\n",
+       pr_notice("open /dev/fb%d user=%d fb_info=%p count=%d\n",
            info->node, user, info, dev->fb_count);
  
        return 0;
@@@ -923,7 -890,7 +890,7 @@@ static void dlfb_free(struct kref *kref
  
        kfree(dev->edid);
  
-       dl_warn("freeing dlfb_data %p\n", dev);
+       pr_warn("freeing dlfb_data %p\n", dev);
  
        kfree(dev);
  }
@@@ -959,7 -926,7 +926,7 @@@ static void dlfb_free_framebuffer_work(
        /* Assume info structure is freed after this point */
        framebuffer_release(info);
  
-       dl_warn("fb_info for /dev/fb%d has been freed\n", node);
+       pr_warn("fb_info for /dev/fb%d has been freed\n", node);
  
        /* ref taken in probe() as part of registering framebfufer */
        kref_put(&dev->kref, dlfb_free);
@@@ -978,16 -945,14 +945,14 @@@ static int dlfb_ops_release(struct fb_i
        if (dev->virtualized && (dev->fb_count == 0))
                schedule_delayed_work(&dev->free_framebuffer_work, HZ);
  
- #ifdef CONFIG_FB_DEFERRED_IO
        if ((dev->fb_count == 0) && (info->fbdefio)) {
                fb_deferred_io_cleanup(info);
                kfree(info->fbdefio);
                info->fbdefio = NULL;
                info->fbops->fb_mmap = dlfb_ops_mmap;
        }
- #endif
  
-       dl_warn("released /dev/fb%d user=%d count=%d\n",
+       pr_warn("released /dev/fb%d user=%d count=%d\n",
                  info->node, user, dev->fb_count);
  
        kref_put(&dev->kref, dlfb_free);
@@@ -1005,12 -970,12 +970,12 @@@ static int dlfb_is_valid_mode(struct fb
        struct dlfb_data *dev = info->par;
  
        if (mode->xres * mode->yres > dev->sku_pixel_limit) {
-               dl_warn("%dx%d beyond chip capabilities\n",
+               pr_warn("%dx%d beyond chip capabilities\n",
                       mode->xres, mode->yres);
                return 0;
        }
  
-       dl_info("%dx%d valid mode\n", mode->xres, mode->yres);
+       pr_info("%dx%d valid mode\n", mode->xres, mode->yres);
  
        return 1;
  }
@@@ -1054,7 -1019,7 +1019,7 @@@ static int dlfb_ops_set_par(struct fb_i
        u16 *pix_framebuffer;
        int i;
  
-       dl_notice("set_par mode %dx%d\n", info->var.xres, info->var.yres);
+       pr_notice("set_par mode %dx%d\n", info->var.xres, info->var.yres);
  
        result = dlfb_set_video_mode(dev, &info->var);
  
@@@ -1104,7 -1069,7 +1069,7 @@@ static int dlfb_ops_blank(int blank_mod
  
  static struct fb_ops dlfb_ops = {
        .owner = THIS_MODULE,
-       .fb_read = dlfb_ops_read,
+       .fb_read = fb_sys_read,
        .fb_write = dlfb_ops_write,
        .fb_setcolreg = dlfb_ops_setcolreg,
        .fb_fillrect = dlfb_ops_fillrect,
@@@ -1133,7 -1098,7 +1098,7 @@@ static int dlfb_realloc_framebuffer(str
        unsigned char *new_fb;
        unsigned char *new_back;
  
-       dl_warn("Reallocating framebuffer. Addresses will change!\n");
+       pr_warn("Reallocating framebuffer. Addresses will change!\n");
  
        new_len = info->fix.line_length * info->var.yres;
  
                 */
                new_fb = vmalloc(new_len);
                if (!new_fb) {
-                       dl_err("Virtual framebuffer alloc failed\n");
+                       pr_err("Virtual framebuffer alloc failed\n");
                        goto error;
                }
  
                 */
                new_back = vmalloc(new_len);
                if (!new_back)
-                       dl_info("No shadow/backing buffer allcoated\n");
+                       pr_info("No shadow/backing buffer allcoated\n");
                else {
                        if (dev->backing_buffer)
                                vfree(dev->backing_buffer);
@@@ -1207,7 -1172,7 +1172,7 @@@ static int dlfb_setup_modes(struct dlfb
        if (info->dev) /* only use mutex if info has been registered */
                mutex_lock(&info->lock);
  
-       edid = kmalloc(MAX_EDID_SIZE, GFP_KERNEL);
+       edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
        if (!edid) {
                result = -ENOMEM;
                goto error;
         */
        while (tries--) {
  
-               i = dlfb_get_edid(dev, edid, MAX_EDID_SIZE);
+               i = dlfb_get_edid(dev, edid, EDID_LENGTH);
  
-               if (i >= MIN_EDID_SIZE)
+               if (i >= EDID_LENGTH)
                        fb_edid_to_monspecs(edid, &info->monspecs);
  
                if (info->monspecs.modedb_len > 0) {
        /* If that fails, use a previously returned EDID if available */
        if (info->monspecs.modedb_len == 0) {
  
-               dl_err("Unable to get valid EDID from device/display\n");
+               pr_err("Unable to get valid EDID from device/display\n");
  
                if (dev->edid) {
                        fb_edid_to_monspecs(dev->edid, &info->monspecs);
                        if (info->monspecs.modedb_len > 0)
-                               dl_err("Using previously queried EDID\n");
+                               pr_err("Using previously queried EDID\n");
                }
        }
  
        /* If that fails, use the default EDID we were handed */
        if (info->monspecs.modedb_len == 0) {
-               if (default_edid_size >= MIN_EDID_SIZE) {
+               if (default_edid_size >= EDID_LENGTH) {
                        fb_edid_to_monspecs(default_edid, &info->monspecs);
                        if (info->monspecs.modedb_len > 0) {
                                memcpy(edid, default_edid, default_edid_size);
                                dev->edid = edid;
                                dev->edid_size = default_edid_size;
-                               dl_err("Using default/backup EDID\n");
+                               pr_err("Using default/backup EDID\n");
                        }
                }
        }
@@@ -1381,7 -1346,7 +1346,7 @@@ static ssize_t edid_show
        if (off + count > dev->edid_size)
                count = dev->edid_size - off;
  
-       dl_info("sysfs edid copy %p to %p, %d bytes\n",
+       pr_info("sysfs edid copy %p to %p, %d bytes\n",
                dev->edid, buf, (int) count);
  
        memcpy(buf, dev->edid, count);
@@@ -1398,15 -1363,13 +1363,13 @@@ static ssize_t edid_store
        struct dlfb_data *dev = fb_info->par;
  
        /* We only support write of entire EDID at once, no offset*/
-       if ((src_size < MIN_EDID_SIZE) ||
-           (src_size > MAX_EDID_SIZE) ||
-           (src_off != 0))
+       if ((src_size != EDID_LENGTH) || (src_off != 0))
                return 0;
  
        dlfb_setup_modes(dev, fb_info, src, src_size);
  
        if (dev->edid && (memcmp(src, dev->edid, src_size) == 0)) {
-               dl_info("sysfs written EDID is new default\n");
+               pr_info("sysfs written EDID is new default\n");
                dlfb_ops_set_par(fb_info);
                return src_size;
        } else
@@@ -1431,7 -1394,7 +1394,7 @@@ static ssize_t metrics_reset_store(stru
  static struct bin_attribute edid_attr = {
        .attr.name = "edid",
        .attr.mode = 0666,
-       .size = MAX_EDID_SIZE,
+       .size = EDID_LENGTH,
        .read = edid_show,
        .write = edid_store
  };
@@@ -1441,7 -1404,7 +1404,7 @@@ static struct device_attribute fb_devic
        __ATTR_RO(metrics_bytes_identical),
        __ATTR_RO(metrics_bytes_sent),
        __ATTR_RO(metrics_cpu_kcycles_used),
 -      __ATTR(metrics_reset, S_IWUGO, NULL, metrics_reset_store),
 +      __ATTR(metrics_reset, S_IWUSR, NULL, metrics_reset_store),
  };
  
  /*
@@@ -1479,7 -1442,7 +1442,7 @@@ static int dlfb_parse_vendor_descriptor
        total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */
                                    0, desc, MAX_VENDOR_DESCRIPTOR_SIZE);
        if (total_len > 5) {
-               dl_info("vendor descriptor length:%x data:%02x %02x %02x %02x" \
+               pr_info("vendor descriptor length:%x data:%02x %02x %02x %02x" \
                        "%02x %02x %02x %02x %02x %02x %02x\n",
                        total_len, desc[0],
                        desc[1], desc[2], desc[3], desc[4], desc[5], desc[6],
                        case 0x0200: { /* max_area */
                                u32 max_area;
                                max_area = le32_to_cpu(*((u32 *)desc));
-                               dl_warn("DL chip limited to %d pixel modes\n",
+                               pr_warn("DL chip limited to %d pixel modes\n",
                                        max_area);
                                dev->sku_pixel_limit = max_area;
                                break;
  
  unrecognized:
        /* allow udlfb to load for now even if firmware unrecognized */
-       dl_err("Unrecognized vendor firmware descriptor\n");
+       pr_err("Unrecognized vendor firmware descriptor\n");
  
  success:
        kfree(buf);
@@@ -1557,24 -1520,24 +1520,24 @@@ static int dlfb_usb_probe(struct usb_in
        dev->gdev = &usbdev->dev; /* our generic struct device * */
        usb_set_intfdata(interface, dev);
  
-       dl_info("%s %s - serial #%s\n",
+       pr_info("%s %s - serial #%s\n",
                usbdev->manufacturer, usbdev->product, usbdev->serial);
-       dl_info("vid_%04x&pid_%04x&rev_%04x driver's dlfb_data struct at %p\n",
+       pr_info("vid_%04x&pid_%04x&rev_%04x driver's dlfb_data struct at %p\n",
                usbdev->descriptor.idVendor, usbdev->descriptor.idProduct,
                usbdev->descriptor.bcdDevice, dev);
-       dl_info("console enable=%d\n", console);
-       dl_info("fb_defio enable=%d\n", fb_defio);
+       pr_info("console enable=%d\n", console);
+       pr_info("fb_defio enable=%d\n", fb_defio);
  
        dev->sku_pixel_limit = 2048 * 1152; /* default to maximum */
  
        if (!dlfb_parse_vendor_descriptor(dev, usbdev)) {
-               dl_err("firmware not recognized. Assume incompatible device\n");
+               pr_err("firmware not recognized. Assume incompatible device\n");
                goto error;
        }
  
        if (!dlfb_alloc_urb_list(dev, WRITES_IN_FLIGHT, MAX_TRANSFER)) {
                retval = -ENOMEM;
-               dl_err("dlfb_alloc_urb_list failed\n");
+               pr_err("dlfb_alloc_urb_list failed\n");
                goto error;
        }
  
        info = framebuffer_alloc(0, &usbdev->dev);
        if (!info) {
                retval = -ENOMEM;
-               dl_err("framebuffer_alloc failed\n");
+               pr_err("framebuffer_alloc failed\n");
                goto error;
        }
  
  
        retval = fb_alloc_cmap(&info->cmap, 256, 0);
        if (retval < 0) {
-               dl_err("fb_alloc_cmap failed %x\n", retval);
+               pr_err("fb_alloc_cmap failed %x\n", retval);
                goto error;
        }
  
  
        retval = dlfb_setup_modes(dev, info, NULL, 0);
        if (retval != 0) {
-               dl_err("unable to find common mode for display and adapter\n");
+               pr_err("unable to find common mode for display and adapter\n");
                goto error;
        }
  
  
        retval = register_framebuffer(info);
        if (retval < 0) {
-               dl_err("register_framebuffer failed %d\n", retval);
+               pr_err("register_framebuffer failed %d\n", retval);
                goto error;
        }
  
  
        device_create_bin_file(info->dev, &edid_attr);
  
-       dl_info("DisplayLink USB device /dev/fb%d attached. %dx%d resolution."
+       pr_info("DisplayLink USB device /dev/fb%d attached. %dx%d resolution."
                        " Using %dK framebuffer memory\n", info->node,
                        info->var.xres, info->var.yres,
                        ((dev->backing_buffer) ?
@@@ -1673,7 -1636,7 +1636,7 @@@ static void dlfb_usb_disconnect(struct 
        dev = usb_get_intfdata(interface);
        info = dev->info;
  
-       dl_info("USB disconnect starting\n");
+       pr_info("USB disconnect starting\n");
  
        /* we virtualize until all fb clients release. Then we free */
        dev->virtualized = true;
@@@ -1737,7 -1700,7 +1700,7 @@@ static void dlfb_urb_completion(struct 
                if (!(urb->status == -ENOENT ||
                    urb->status == -ECONNRESET ||
                    urb->status == -ESHUTDOWN)) {
-                       dl_err("%s - nonzero write bulk status received: %d\n",
+                       pr_err("%s - nonzero write bulk status received: %d\n",
                                __func__, urb->status);
                        atomic_set(&dev->lost_pixels, 1);
                }
@@@ -1769,7 -1732,7 +1732,7 @@@ static void dlfb_free_urb_list(struct d
        int ret;
        unsigned long flags;
  
-       dl_notice("Waiting for completes and freeing all render urbs\n");
+       pr_notice("Waiting for completes and freeing all render urbs\n");
  
        /* keep waiting and freeing, until we've got 'em all */
        while (count--) {
@@@ -1848,7 -1811,7 +1811,7 @@@ static int dlfb_alloc_urb_list(struct d
        dev->urbs.count = i;
        dev->urbs.available = i;
  
-       dl_notice("allocated %d %d byte urbs\n", i, (int) size);
+       pr_notice("allocated %d %d byte urbs\n", i, (int) size);
  
        return i;
  }
@@@ -1865,7 -1828,7 +1828,7 @@@ static struct urb *dlfb_get_urb(struct 
        ret = down_timeout(&dev->urbs.limit_sem, GET_URB_TIMEOUT);
        if (ret) {
                atomic_set(&dev->lost_pixels, 1);
-               dl_warn("wait for urb interrupted: %x available: %d\n",
+               pr_warn("wait for urb interrupted: %x available: %d\n",
                       ret, dev->urbs.available);
                goto error;
        }
@@@ -1897,7 -1860,7 +1860,7 @@@ static int dlfb_submit_urb(struct dlfb_
        if (ret) {
                dlfb_urb_completion(urb); /* because no one else will */
                atomic_set(&dev->lost_pixels, 1);
-               dl_err("usb_submit_urb error %x\n", ret);
+               pr_err("usb_submit_urb error %x\n", ret);
        }
        return ret;
  }