|
|
7cec0fd |
From c91a793f66d5b06292aa431ae3a36c8aca991fa3 Mon Sep 17 00:00:00 2001
|
|
|
7cec0fd |
From: Kay Sievers <kay.sievers@vrfy.org>
|
|
|
7cec0fd |
Date: Tue, 5 Jul 2011 17:04:11 -0700
|
|
|
7cec0fd |
Subject: [PATCH] drivers/video/udlfb bind framebuffer to interface.
|
|
|
7cec0fd |
|
|
|
7cec0fd |
Udlfb has been binding the framebuffer device to its parent, which
|
|
|
7cec0fd |
isn't correct and causes confusion with operations like udev remove.
|
|
|
7cec0fd |
|
|
|
7cec0fd |
Coming plug and play multiseat support is dependent on this fix.
|
|
|
7cec0fd |
|
|
|
7cec0fd |
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
|
|
|
7cec0fd |
Signed-off-by: Bernie Thompson <bernie@plugable.com>
|
|
|
7cec0fd |
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
|
|
|
7cec0fd |
---
|
|
|
7cec0fd |
drivers/video/udlfb.c | 2 +-
|
|
|
7cec0fd |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
7cec0fd |
|
|
|
7cec0fd |
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
|
|
|
7cec0fd |
index 816a4fd..c6584c9 100644
|
|
|
7cec0fd |
--- a/drivers/video/udlfb.c
|
|
|
7cec0fd |
+++ b/drivers/video/udlfb.c
|
|
|
7cec0fd |
@@ -1549,7 +1549,7 @@ static int dlfb_usb_probe(struct usb_interface *interface,
|
|
|
7cec0fd |
/* We don't register a new USB class. Our client interface is fbdev */
|
|
|
7cec0fd |
|
|
|
7cec0fd |
/* allocates framebuffer driver structure, not framebuffer memory */
|
|
|
7cec0fd |
- info = framebuffer_alloc(0, &usbdev->dev);
|
|
|
7cec0fd |
+ info = framebuffer_alloc(0, &interface->dev);
|
|
|
7cec0fd |
if (!info) {
|
|
|
7cec0fd |
retval = -ENOMEM;
|
|
|
7cec0fd |
pr_err("framebuffer_alloc failed\n");
|
|
|
7cec0fd |
--
|
|
|
7cec0fd |
1.7.4.4
|
|
|
7cec0fd |
|