From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Slusarz Subject: [PATCH] drm/nouveau: printk info about disabled modesetting Date: Mon, 4 Apr 2011 19:27:35 +0200 Message-ID: <20110404172735.GA8979@joi.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org ... to make it obvious why nouveau refused to drive the hardware. Signed-off-by: Marcin Slusarz --- drivers/gpu/drm/nouveau/nouveau_drv.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c index f658a04..515c656 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.c +++ b/drivers/gpu/drm/nouveau/nouveau_drv.c @@ -445,8 +445,10 @@ static int __init nouveau_init(void) nouveau_modeset = 1; } - if (!nouveau_modeset) + if (!nouveau_modeset) { + printk(KERN_INFO "nouveau: modesetting disabled by kernel parameter\n"); return 0; + } nouveau_register_dsm_handler(); return drm_init(&driver); -- 1.7.4.1