From patchwork Sun Feb 17 17:59:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2153711 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 3EB373FCA4 for ; Sun, 17 Feb 2013 18:04:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 23EB1E62EF for ; Sun, 17 Feb 2013 10:04:39 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 08AA1E6217 for ; Sun, 17 Feb 2013 09:59:57 -0800 (PST) Received: by mail-bk0-f49.google.com with SMTP id w11so2223107bku.22 for ; Sun, 17 Feb 2013 09:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=/tJo2VtTNte8uhcaEynIVZI0Wgxn+IsmdDGogk3s/eY=; b=VkEwZWySxD7ED+dRVNargmXOV3oYQ2bOouWMvkJyfjEZvws37YmzozJCpOAW6HffcE vNzf7qCrnNTLQ7cL0cZPtKclAFYSgJ2/0TXCpIbWxRPUIbgnq3/Q/m6EQAXdWPWW3SZQ trdugyguI/eB2peY9qxHAV/T+Ar2rWyXZ5kv8SI5feqeUL5NfqM0rI3Bytnvsto4lI8C OzvtKpmiBfgvROAqxrMhIit/m9ZL86SCyaraT9IOfNQORuXS2raC2CHIRX3OjgwLcWlL KUMkzgWL5lRwE2xdI9JUPbT7VQZp53Mb0WX6d+RAnp6OHW1RwOk3ZmBZGmwXQYuf+mxm vEQg== X-Received: by 10.204.150.142 with SMTP id y14mr3603321bkv.63.1361123997143; Sun, 17 Feb 2013 09:59:57 -0800 (PST) Received: from localhost.localdomain (stgt-5f71b832.pool.mediaWays.net. [95.113.184.50]) by mx.google.com with ESMTPS id ho6sm20038738bkc.0.2013.02.17.09.59.55 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Feb 2013 09:59:56 -0800 (PST) From: David Herrmann To: linux-kernel@vger.kernel.org Subject: [PATCH 5/9] video: vesafb: use sysfb bus Date: Sun, 17 Feb 2013 18:59:07 +0100 Message-Id: <1361123951-587-6-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1361123951-587-1-git-send-email-dh.herrmann@gmail.com> References: <1361123951-587-1-git-send-email-dh.herrmann@gmail.com> Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Florian Tobias Schandinat X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Instead of using our own platform device, we now register as sysfb driver and get notified whenever we are loaded on a system VBE device. This allows other VBE drivers to be loaded at the same time and users can bind/unbind drivers via sysfs. We also no longer need to fake a platform-device because the sysfb bus provides all devices now. Signed-off-by: David Herrmann --- drivers/video/Kconfig | 1 + drivers/video/vesafb.c | 49 +++++++++++++++---------------------------------- 2 files changed, 16 insertions(+), 34 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index d5723c2..5c23d32 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -776,6 +776,7 @@ config FB_VESA select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_BOOT_VESA_SUPPORT + select SYSFB help This is the frame buffer device driver for generic VESA 2.0 compliant graphic cards. The older VESA 1.2 cards are not supported. diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c index 4ad7b40..652858f 100644 --- a/drivers/video/vesafb.c +++ b/drivers/video/vesafb.c @@ -19,6 +19,7 @@ #include #include #include +#include #include