From: Wanlong Gao Date: Sun, 12 Jun 2011 10:52:33 +0000 (+0000) Subject: efifb: Fix call to wrong unregister function X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e6b8480cdf27953c3d13e6e34dd075f8287b02f0;p=linux-beck.git efifb: Fix call to wrong unregister function platform_device_unregister() needs to unregister the device, not the driver. Signed-off-by: Wanlong Gao Signed-off-by: Maarten Lankhorst Acked-by: Andy Lutomirski Signed-off-by: Paul Mundt --- diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index 69c49dfce9cf..784139aed079 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; }