efifb: Fix call to wrong unregister function
authorWanlong Gao <wanlong.gao@gmail.com>
Sun, 12 Jun 2011 10:52:33 +0000 (10:52 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 14 Jun 2011 07:37:46 +0000 (16:37 +0900)
platform_device_unregister() needs to unregister the device, not the
driver.

Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Acked-by: Andy Lutomirski <luto@mit.edu>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/efifb.c

index 69c49dfce9cf93aa3c771dbf4af91f0669fea260..784139aed0793cab282cf52f3f3c3503a85a9a5a 100644 (file)
@@ -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;
        }