From patchwork Sun Jun 12 08:45:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maarten Lankhorst X-Patchwork-Id: 872732 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5C8fx9l021211 for ; Sun, 12 Jun 2011 08:45:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580Ab1FLIpI (ORCPT ); Sun, 12 Jun 2011 04:45:08 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:37571 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752346Ab1FLIpH (ORCPT ); Sun, 12 Jun 2011 04:45:07 -0400 Received: by eyx24 with SMTP id 24so1316043eyx.19 for ; Sun, 12 Jun 2011 01:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=jtG94TTlpZ3tbdlvN3wi0Kdcwvkt5ewKVjXqYNEDXxc=; b=sY5b39xkn/GOpv25ZVY6cNoln6Sk9rgOuvyKXs7URGpRkK+Nc6/MOn9l/GbdmXZ+Qg Q+N2GhTPA8OkpwKIbEh/O/tJub+YukGc0IPAgubQ7BKY7fBEuo1RPzpQB4pQu00NgLph dGj61EgAocefi928K0Ezt/vEH7xRNpST0ys0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=pCLnfvViSoU/gUSPeL/NejvFLv4lvAlzw6bSGlvhU3hfat+Z4D9CqWFzrGgtt4MvEV trR619+Ukg/IkekACAwyx1LldhEGI5Vc7P/+k87Urle9TDJgijDWpifPGYSwcEFDHr6B 1rdFtn6CSVGLikSXPm82HLMirzLXil+HiBOmk= Received: by 10.213.106.204 with SMTP id y12mr2225315ebo.64.1307868305532; Sun, 12 Jun 2011 01:45:05 -0700 (PDT) Received: from patser.local (ip3e839b35.speed.planet.nl [62.131.155.53]) by mx.google.com with ESMTPS id b19sm4071473eec.8.2011.06.12.01.45.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Jun 2011 01:45:04 -0700 (PDT) Received: from mlankhorst by patser.local with local (Exim 4.74) (envelope-from ) id 1QVgI2-0000TB-Qw; Sun, 12 Jun 2011 10:45:02 +0200 From: Maarten Lankhorst To: Peter Jones Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Maarten Lankhorst Subject: [PATCH] efifb: Fix call to wrong unregister function Date: Sun, 12 Jun 2011 10:45:01 +0200 Message-Id: <1307868301-1773-1-git-send-email-m.b.lankhorst@gmail.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 (demeter1.kernel.org [140.211.167.41]); Sun, 12 Jun 2011 08:45:08 +0000 (UTC) Seems like driver_unregister must be called instead of device_unregister. Signed-off-by: Maarten Lankhorst --- drivers/video/efifb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index 69c49df..d8717a6 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c @@ -541,7 +541,7 @@ static int __init efifb_init(void) */ ret = platform_driver_probe(&efifb_driver, efifb_probe); if (ret) { - platform_device_unregister(&efifb_driver); + platform_driver_unregister(&efifb_driver); return ret; }