/* RETURNS: Pointer to allocated memory on success, NULL on failure.  */
void* devm_kzalloc(struct device *dev, size_t size, gfp_t gfp)
/* RETURNS: Pointer to allocated memory on success, NULL on failure.  */
void* devm_kzalloc(struct device *dev, size_t size, gfp_t gfp)
{
	struct devres *dr;
	dr = alloc_dr(devm_kzalloc_release, size, gfp);
	if (unlikely(!dr))
		return NULL;
	set_node_dbginfo(&dr->node, "devm_kzalloc_release", size);
	devres_add(dev, dr->data);
	return dr->data;
}