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 69c49df..784139a 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;
        }