static void muic_cleanup_switch_dev_cb(void) { #if defined(CONFIG_MUIC_NOTIFIER) muic_notifier_unregister(&dock_notifier_block); #endif /* CONFIG_MUIC_NOTIFIER */ pr_info("%s: done\n", __func__); }
static int usb_notifier_remove(struct platform_device *pdev) { struct usb_notifier_platform_data *pdata = dev_get_platdata(&pdev->dev); #if defined(CONFIG_MUIC_NOTIFIER) muic_notifier_unregister(&pdata->usb_nb); #endif return 0; }