static int __init msic_init(void) { static struct notifier_block msic_scu_notifier = { .notifier_call = msic_scu_status_change, }; /* * We need to be sure that the SCU IPC is ready before MSIC device * can be registered. */ if (intel_mid_has_msic()) intel_scu_notifier_add(&msic_scu_notifier); return 0; }
static int __init register_mid_wdt(void) { if (intel_mid_identify_cpu() != INTEL_MID_CPU_CHIP_TANGIER) return -ENODEV; wdt_dev.dev.platform_data = &tangier_pdata; /* * We need to be sure that the SCU IPC is ready before watchdog device * can be registered: */ intel_scu_notifier_add(&wdt_scu_notifier); return 0; }