Searched refs:battery_dev (Results 1 – 2 of 2) sorted by relevance
671 platform_device_unregister(wm->battery_dev); in wm97xx_remove_battery()679 wm->battery_dev = platform_device_alloc("wm97xx-battery", -1); in wm97xx_add_battery()680 if (!wm->battery_dev) in wm97xx_add_battery()683 platform_set_drvdata(wm->battery_dev, wm); in wm97xx_add_battery()684 wm->battery_dev->dev.parent = wm->dev; in wm97xx_add_battery()685 wm->battery_dev->dev.platform_data = pdata; in wm97xx_add_battery()686 ret = platform_device_add(wm->battery_dev); in wm97xx_add_battery()688 platform_device_put(wm->battery_dev); in wm97xx_add_battery()
272 struct platform_device *battery_dev; member