[media] s5p-mfc: Fix a watchdog bug
authorKamil Debski <k.debski@samsung.com>
Fri, 11 Jan 2013 14:29:32 +0000 (11:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 19:27:19 +0000 (17:27 -0200)
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>
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c

index 1682271..2e5f30b 100644 (file)
@@ -130,7 +130,7 @@ int s5p_mfc_reload_firmware(struct s5p_mfc_dev *dev)
                release_firmware(fw_blob);
                return -ENOMEM;
        }
-       if (dev->fw_virt_addr) {
+       if (!dev->fw_virt_addr) {
                mfc_err("MFC firmware is not allocated\n");
                release_firmware(fw_blob);
                return -EINVAL;