[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1307875953.1859.6.camel@Tux>
Date: Sun, 12 Jun 2011 18:52:33 +0800
From: "wanlong.gao" <wanlong.gao@...il.com>
To: linux-kernel@...r.kernel.org, linux-fbdev@...r.kernel.org
Cc: Maarten Lankhorst <m.b.lankhorst@...il.com>,
Maarten Lankhorst <m.b.lankhorst@...il.com>,
Peter Jones <pjones@...hat.com>
Subject: re:[PATCH] efifb: Fix call to wrong unregister function
<snip>
Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?
Signed-off-by: Wanlong Gao <wanlong.gao@...il.com>
---
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..784139a 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_device_unregister(&efifb_device);
return ret;
}
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists