diff options
-rw-r--r-- | drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c index 8621a9f2bdcc..3c12bd83b561 100644 --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c | |||
@@ -441,8 +441,7 @@ static void path_deinit(struct mmphw_path_plat *path_plat) | |||
441 | if (!path_plat) | 441 | if (!path_plat) |
442 | return; | 442 | return; |
443 | 443 | ||
444 | if (path_plat->path) | 444 | mmp_unregister_path(path_plat->path); |
445 | mmp_unregister_path(path_plat->path); | ||
446 | } | 445 | } |
447 | 446 | ||
448 | static int mmphw_probe(struct platform_device *pdev) | 447 | static int mmphw_probe(struct platform_device *pdev) |