Allocations function requires device

Change-Id: I4b5435c2f761079dbe09d3ed2d0a410f75f01275
Merge "Allocations function requires device"