aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2013-01-11 09:29:32 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-05 14:27:19 -0500
commit33133ea7aca7eedf8b1b4cee514c76dce7654a8c (patch)
tree55f4a2a8d645f03c28011f48f02b692216b62359 /drivers/media/platform
parentba1066d2e9686a5c96c5c0dfcbda7f874fa7b88d (diff)
[media] s5p-mfc: Fix a watchdog bug
Fixed wrong condition in firmware reload function used by the watchdog. Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
index 1682271c2453..2e5f30b40dea 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
@@ -130,7 +130,7 @@ int s5p_mfc_reload_firmware(struct s5p_mfc_dev *dev)
130 release_firmware(fw_blob); 130 release_firmware(fw_blob);
131 return -ENOMEM; 131 return -ENOMEM;
132 } 132 }
133 if (dev->fw_virt_addr) { 133 if (!dev->fw_virt_addr) {
134 mfc_err("MFC firmware is not allocated\n"); 134 mfc_err("MFC firmware is not allocated\n");
135 release_firmware(fw_blob); 135 release_firmware(fw_blob);
136 return -EINVAL; 136 return -EINVAL;