From patchwork Wed Jul 6 00:04:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bernie@plugable.com X-Patchwork-Id: 960662 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6A6KRuY012225 for ; Sun, 10 Jul 2011 06:20:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535Ab1GJGU0 (ORCPT ); Sun, 10 Jul 2011 02:20:26 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:62308 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007Ab1GJGUZ (ORCPT ); Sun, 10 Jul 2011 02:20:25 -0400 Received: by pwj7 with SMTP id 7so1958155pwj.19 for ; Sat, 09 Jul 2011 23:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=UqvVh/yo3fI4U0ex/F54rw87BHajpHb6C7S8fgqFDhM=; b=ruUvqGYjZLr6+DAOiYpkK1zhoiqaJNjLpuxzo3sEDE1sZrLw5OW6gEPRNTT/on33rC 0VvsObhWdyQMLfFNf6eszpZwBPtcmriQFYM+NG1G3IttePxc90U+Dv3YHLvyUPHGiCS4 /YuvFFxyrhtl70KSaPjJ3urHG2petoTJo1KdI= Received: by 10.68.28.106 with SMTP id a10mr141337pbh.176.1310278824957; Sat, 09 Jul 2011 23:20:24 -0700 (PDT) Received: from localhost.localdomain (c-76-22-58-200.hsd1.wa.comcast.net [76.22.58.200]) by mx.google.com with ESMTPS id z7sm7545837pbk.19.2011.07.09.23.20.22 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 23:20:23 -0700 (PDT) From: bernie@plugable.com To: linux-fbdev@vger.kernel.org Cc: lethal@linux-sh.org, Kay Sievers , Bernie Thompson Subject: [PATCH] drivers/video/udlfb bind framebuffer to interface. Date: Tue, 5 Jul 2011 17:04:11 -0700 Message-Id: <1309910651-3483-1-git-send-email-bernie@plugable.com> X-Mailer: git-send-email 1.7.4.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sun, 10 Jul 2011 06:20:28 +0000 (UTC) From: Kay Sievers Udlfb has been binding the framebuffer device to its parent, which isn't correct and causes confusion with operations like udev remove. Coming plug and play multiseat support is dependent on this fix. Signed-off-by: Bernie Thompson --- drivers/video/udlfb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index 816a4fd..c6584c9 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c @@ -1549,7 +1549,7 @@ static int dlfb_usb_probe(struct usb_interface *interface, /* We don't register a new USB class. Our client interface is fbdev */ /* allocates framebuffer driver structure, not framebuffer memory */ - info = framebuffer_alloc(0, &usbdev->dev); + info = framebuffer_alloc(0, &interface->dev); if (!info) { retval = -ENOMEM; pr_err("framebuffer_alloc failed\n");