/* RETURNS: Pointer to allocated devres on success, NULL on failure.  */
void* devres_alloc(dr_release_t release, size_t size, gfp_t gfp)
/* RETURNS: Pointer to allocated devres on success, NULL on failure.  */
void* devres_alloc(dr_release_t release, size_t size, gfp_t gfp)
{
	struct devres *dr;
	dr = alloc_dr(release, size, gfp);
	if (unlikely(!dr))
		return NULL;
	return dr->data;
}