|
@@ -1861,7 +1861,6 @@ static __init int vpfe_probe(struct platform_device *pdev)
|
|
|
goto probe_free_dev_mem;
|
|
|
}
|
|
|
|
|
|
- mutex_lock(&ccdc_lock);
|
|
|
/* Allocate memory for ccdc configuration */
|
|
|
ccdc_cfg = kmalloc(sizeof(struct ccdc_config), GFP_KERNEL);
|
|
|
if (NULL == ccdc_cfg) {
|
|
@@ -1870,6 +1869,8 @@ static __init int vpfe_probe(struct platform_device *pdev)
|
|
|
goto probe_free_lock;
|
|
|
}
|
|
|
|
|
|
+ mutex_lock(&ccdc_lock);
|
|
|
+
|
|
|
strncpy(ccdc_cfg->name, vpfe_cfg->ccdc, 32);
|
|
|
/* Get VINT0 irq resource */
|
|
|
res1 = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
|