static int __devinit pil_mss_driver_probe(struct platform_device *pdev) { struct modem_data *drv; int ret, is_not_loadable; #ifdef CONFIG_MACH_LGE dev_info(&pdev->dev, "probing\n"); #endif #ifdef CONFIG_MACH_LGE dev_info(&pdev->dev, "probing\n"); #endif drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); if (!drv) return -ENOMEM; platform_set_drvdata(pdev, drv); is_not_loadable = of_property_read_bool(pdev->dev.of_node, "qcom,is-not-loadable"); if (is_not_loadable) { drv->subsys_desc.is_not_loadable = 1; } else { ret = pil_mss_loadable_init(drv, pdev); if (ret) return ret; } init_completion(&drv->stop_ack); return pil_subsys_init(drv, pdev); }
static int pil_mss_driver_probe(struct platform_device *pdev) { struct modem_data *drv; int ret, is_not_loadable; drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); if (!drv) return -ENOMEM; platform_set_drvdata(pdev, drv); is_not_loadable = of_property_read_bool(pdev->dev.of_node, "qcom,is-not-loadable"); if (is_not_loadable) { drv->subsys_desc.is_not_loadable = 1; } else { ret = pil_mss_loadable_init(drv, pdev); if (ret) return ret; } init_completion(&drv->stop_ack); #ifdef FEATURE_LGE_MODEM_DEBUG_INFO modem_debug.modem_ssr_queue = alloc_workqueue("modem_ssr_queue", 0, 0); if (!modem_debug.modem_ssr_queue) { printk("could not create modem_ssr_queue\n"); } modem_debug.modem_ssr_event = 0; modem_debug.modem_ssr_level = RESET_SOC; INIT_WORK(&modem_debug.modem_ssr_report_work, modem_ssr_report_work_fn); #endif return pil_subsys_init(drv, pdev); }
static int pil_mss_driver_probe(struct platform_device *pdev) { struct modem_data *drv; int ret, is_not_loadable; drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); if (!drv) return -ENOMEM; platform_set_drvdata(pdev, drv); is_not_loadable = of_property_read_bool(pdev->dev.of_node, "qcom,is-not-loadable"); if (is_not_loadable) { drv->subsys_desc.is_not_loadable = 1; } else { ret = pil_mss_loadable_init(drv, pdev); if (ret) return ret; } init_completion(&drv->stop_ack); /* Probe the MBA mem device if present */ ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev); if (ret) return ret; return pil_subsys_init(drv, pdev); }