summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorWanlong Gao <wanlong.gao@gmail.com>2011-06-12 10:52:33 +0000
committerPaul Mundt <lethal@linux-sh.org>2011-06-14 16:37:46 +0900
commite6b8480cdf27953c3d13e6e34dd075f8287b02f0 (patch)
treee057b202143affb1eff8d8ba34a9545506f13b60 /drivers/video
parentfab7c5b778b1e0ee89e75679b2d6a1405318bb11 (diff)
efifb: Fix call to wrong unregister function
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/efifb.c2
1 files changed, 1 insertions, 1 deletions
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;
}