static int __init pcc_init(void) { int ret; struct platform_device *pcc_pdev; if (acpi_disabled) return -ENODEV; /* Check if PCC support is available. */ ret = acpi_pcc_probe(); if (ret) { pr_debug("ACPI PCC probe failed.\n"); return -ENODEV; } pcc_pdev = platform_create_bundle(&pcc_mbox_driver, pcc_mbox_probe, NULL, 0, NULL, 0); if (IS_ERR(pcc_pdev)) { pr_debug("Err creating PCC platform bundle\n"); return PTR_ERR(pcc_pdev); } return 0; }
static int __init thinkpad_wmi_init(void) { platform_device = platform_create_bundle(&platform_driver, thinkpad_wmi_probe, NULL, 0, NULL, 0); if (IS_ERR(platform_device)) return PTR_ERR(platform_device); return 0; }
static int __init samsungq10_init(void) { if (!force && !dmi_check_system(samsungq10_dmi_table)) return -ENODEV; samsungq10_device = platform_create_bundle(&samsungq10_driver, samsungq10_probe, NULL, 0, NULL, 0); return PTR_ERR_OR_ZERO(samsungq10_device); }