Searched refs:battery_dev (Results 1 – 2 of 2) sorted by relevance
705 platform_device_unregister(wm->battery_dev); in wm97xx_remove_battery()713 wm->battery_dev = platform_device_alloc("wm97xx-battery", -1); in wm97xx_add_battery()714 if (!wm->battery_dev) in wm97xx_add_battery()717 platform_set_drvdata(wm->battery_dev, wm); in wm97xx_add_battery()718 wm->battery_dev->dev.parent = wm->dev; in wm97xx_add_battery()719 wm->battery_dev->dev.platform_data = pdata; in wm97xx_add_battery()720 ret = platform_device_add(wm->battery_dev); in wm97xx_add_battery()722 platform_device_put(wm->battery_dev); in wm97xx_add_battery()
275 struct platform_device *battery_dev; member