Home
last modified time | relevance | path

Searched refs:bat_pdev (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dpmu_battery.c141 static struct platform_device *bat_pdev; variable
148 bat_pdev = platform_device_register_simple("pmu-battery", in pmu_bat_init()
150 if (IS_ERR(bat_pdev)) { in pmu_bat_init()
151 ret = PTR_ERR(bat_pdev); in pmu_bat_init()
155 pmu_ac = power_supply_register(&bat_pdev->dev, &pmu_ac_desc, NULL); in pmu_bat_init()
176 pbat->bat = power_supply_register(&bat_pdev->dev, in pmu_bat_init()
198 platform_device_unregister(bat_pdev); in pmu_bat_init()
215 platform_device_unregister(bat_pdev); in pmu_bat_exit()