static void can_led_release(struct device *gendev, void *res) { struct can_priv *priv = netdev_priv(to_net_dev(gendev)); led_trigger_unregister_simple(priv->tx_led_trig); led_trigger_unregister_simple(priv->rx_led_trig); }
static void power_supply_remove_bat_triggers(struct power_supply *psy) { led_trigger_unregister_simple(psy->charging_full_trig); led_trigger_unregister_simple(psy->charging_trig); led_trigger_unregister_simple(psy->full_trig); led_trigger_unregister_simple(psy->charging_blink_full_solid_trig); kfree(psy->charging_blink_full_solid_trig_name); kfree(psy->full_trig_name); kfree(psy->charging_trig_name); kfree(psy->charging_full_trig_name); }
static int sharpsl_pm_remove(struct platform_device *pdev) { suspend_set_ops(NULL); device_remove_file(&pdev->dev, &dev_attr_battery_percentage); device_remove_file(&pdev->dev, &dev_attr_battery_voltage); led_trigger_unregister_simple(sharpsl_charge_led_trigger); free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr); free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr); if (sharpsl_pm.machinfo->gpio_fatal) free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); if (sharpsl_pm.machinfo->batfull_irq) free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); gpio_free(sharpsl_pm.machinfo->gpio_batlock); gpio_free(sharpsl_pm.machinfo->gpio_batfull); gpio_free(sharpsl_pm.machinfo->gpio_acin); if (sharpsl_pm.machinfo->exit) sharpsl_pm.machinfo->exit(); del_timer_sync(&sharpsl_pm.chrg_full_timer); del_timer_sync(&sharpsl_pm.ac_timer); return 0; }
void dsi_panel_deinit(void) { if (!panel_private) return; kfree(panel_private->dsi_panel_tx_buf.start); kfree(panel_private->dsi_panel_rx_buf.start); if (!IS_ERR(panel_private->vddio_vreg)) devm_regulator_put(panel_private->vddio_vreg); if (!IS_ERR(panel_private->vdda_vreg)) devm_regulator_put(panel_private->vdda_vreg); if (panel_private->on_cmds_list) { kfree(panel_private->on_cmds_list->buf); kfree(panel_private->on_cmds_list); } if (panel_private->off_cmds_list) { kfree(panel_private->off_cmds_list->buf); kfree(panel_private->off_cmds_list); } kfree(panel_private->on_cmds); kfree(panel_private->off_cmds); kfree(panel_private); panel_private = NULL; if (bl_led_trigger) { led_trigger_unregister_simple(bl_led_trigger); bl_led_trigger = NULL; } }
static int h1940bt_remove(struct platform_device *pdev) { #ifdef CONFIG_LEDS_H1940 led_trigger_unregister_simple(bt_led_trigger); #endif return 0; }
static int pmic_charger_remove(struct platform_device *pdev) { struct pmic_charger *charger = platform_get_drvdata(pdev); pmic_free_irq(charger->master, &charger->nb, charger->event); led_trigger_unregister_simple(charger->led); pmic_sysfs_unregister_charger(charger->ops); return 0; }
/* ------------------------------------------------------------------------- */ static int shcamled_torch_remove(struct platform_device *pdev) { SHCAMLED_TRACE("%s in\n", __FUNCTION__); led_trigger_unregister_simple(cam_torch_flash_0_trigger); led_trigger_unregister_simple(cam_torch_flash_1_trigger); led_trigger_unregister_simple(cam_torch_led_1_trigger); device_remove_file(&pdev->dev, &dev_attr_shcamled_torch); if(p_flash_off_thread != NULL){ kthread_stop(p_flash_off_thread); } if(p_flash_on_thread != NULL){ kthread_stop(p_flash_on_thread); } SHCAMLED_TRACE("%s done\n", __FUNCTION__); return 0; }
/* ------------------------------------------------------------------------- */ static int shcamled_torch_remove(struct platform_device *pdev) { SHCAMLED_TRACE("%s in\n", __FUNCTION__); led_trigger_unregister_simple(cam_torch_led_1_trigger); device_remove_file(&pdev->dev, &dev_attr_shcamled_torch); SHCAMLED_TRACE("%s done\n", __FUNCTION__); return 0; }
static int microp_keypad_remove(struct platform_device *pdev) { free_irq(microp_keypad.pdata->irq_keypress, pdev); input_unregister_device(microp_keypad.input); input_free_device(microp_keypad.input); led_trigger_unregister_simple(microp_keypad.bl_trigger); if (microp_keypad.pdata->exit) microp_keypad.pdata->exit(&pdev->dev); microp_keypad.client = NULL; return 0; }
static void __exit ledtrig_cpu_exit(void) { int cpu; for_each_possible_cpu(cpu) { struct led_trigger_cpu *trig = &per_cpu(cpu_trig, cpu); led_trigger_unregister_simple(trig->_trig); trig->_trig = NULL; memset(trig->name, 0, MAX_NAME_LEN); } unregister_syscore_ops(&ledtrig_cpu_syscore_ops); }
static int sharpsl_pm_remove(struct platform_device *pdev) { suspend_set_ops(NULL); device_remove_file(&pdev->dev, &dev_attr_battery_percentage); device_remove_file(&pdev->dev, &dev_attr_battery_voltage); led_trigger_unregister_simple(sharpsl_charge_led_trigger); sharpsl_pm.machinfo->exit(); del_timer_sync(&sharpsl_pm.chrg_full_timer); del_timer_sync(&sharpsl_pm.ac_timer); return 0; }
static void __exit ledtrig_sleep_exit(void) { unregister_early_suspend(&ledtrig_sleep_early_suspend_handler); unregister_pm_notifier(&ledtrig_sleep_pm_notifier); led_trigger_unregister_simple(ledtrig_sleep); }
static void power_supply_remove_gen_triggers(struct power_supply *psy) { led_trigger_unregister_simple(psy->online_trig); kfree(psy->online_trig_name); }
static void __exit ledtrig_ide_exit(void) { led_trigger_unregister_simple(ledtrig_ide); }
static void __exit wmt_bl_exit(void) { led_trigger_unregister_simple(genesis_led); platform_device_unregister(&wm8880_device_pwmbl); }
static void __exit ledtrig_camera_exit(void) { led_trigger_unregister_simple(ledtrig_torch); led_trigger_unregister_simple(ledtrig_flash); }