maru_camera: Modified a return value 14/23614/2
authorjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 30 Jun 2014 11:08:55 +0000 (20:08 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 1 Jul 2014 04:01:54 +0000 (13:01 +0900)
When the host PC has no connected webcam,
returns '0' instead of '1' in device realizaion time.
Because, the return value '1' causes mismatch for qdev & pci dev realization.

Change-Id: I04d76f9b4fc4a83ea26e1eae62636361186af5f0
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/hw/maru_camera_common_pci.c

index f3f21514bbe1828e883ff6bfe90c64907e1a0aaa..4618f4bd34e94a710e519381bf5d1de6294eeace 100644 (file)
@@ -207,13 +207,13 @@ static int marucam_initfn(PCIDevice *dev)
     uint8_t *pci_conf = s->dev.config;
 
     /* Check available webcam
-     * If there is not one, we don't init this device
+     * If there is not one, you can't use the camera.
      */
     if (!marucam_device_check(1)) {
         s->initialized = false;
         ERR("Failed to check the camera device, "
-            "stop the camera initialization. You can *not* use the camera\n");
-        return 1;
+            "You can *not* use the camera\n");
+        return 0;
     }
 
     pci_config_set_interrupt_pin(pci_conf, 0x03);