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>
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);