From 0165f37fb1cca93307367323a5700633f2ba00db Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Mon, 30 Jun 2014 20:08:55 +0900 Subject: [PATCH] maru_camera: Modified a return value 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 --- tizen/src/hw/maru_camera_common_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tizen/src/hw/maru_camera_common_pci.c b/tizen/src/hw/maru_camera_common_pci.c index f3f21514bb..4618f4bd34 100644 --- a/tizen/src/hw/maru_camera_common_pci.c +++ b/tizen/src/hw/maru_camera_common_pci.c @@ -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); -- 2.34.1