Searched refs:battery_dev (Results 1 – 2 of 2) sorted by relevance
678 wm->battery_dev = platform_device_alloc("wm97xx-battery", -1); in wm97xx_probe()679 if (!wm->battery_dev) { in wm97xx_probe()683 platform_set_drvdata(wm->battery_dev, wm); in wm97xx_probe()684 wm->battery_dev->dev.parent = dev; in wm97xx_probe()685 wm->battery_dev->dev.platform_data = pdata; in wm97xx_probe()686 ret = platform_device_add(wm->battery_dev); in wm97xx_probe()709 platform_device_del(wm->battery_dev); in wm97xx_probe()711 platform_device_put(wm->battery_dev); in wm97xx_probe()727 platform_device_unregister(wm->battery_dev); in wm97xx_remove()
274 struct platform_device *battery_dev; member