int modem_unregister_notifier(struct notifier_block *nb) { int ret; ret = srcu_notifier_chain_unregister( &modem_notifier_list, nb); return ret; }
/* * kgsl_devfreq_del_notifier - remove a fine grained notifier. * @dev: The device * @nb: The notifier block. * * Remove a notifier registered with kgsl_devfreq_add_notifier(). */ int kgsl_devfreq_del_notifier(struct device *dev, struct notifier_block *nb) { struct kgsl_device *device = dev_get_drvdata(dev); if (device == NULL) return -ENODEV; if (nb == NULL) return -EINVAL; return srcu_notifier_chain_unregister(&device->pwrscale.nh, nb); }
int mmi_panel_unregister_notifier(struct notifier_block *nb) { struct mipi_mot_panel *mot_panel = mipi_mot_get_mot_panel(); return srcu_notifier_chain_unregister( &mot_panel->panel_notifier_list, nb); }
int ambarella_audio_unregister_notifier(struct notifier_block *nb) { return srcu_notifier_chain_unregister(&audio_notifier_list, nb); }