iommu/vt-d: Factor out dmar_alloc_dev_scope() for later reuse
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 19 Feb 2014 06:07:24 +0000 (14:07 +0800)
committerJoerg Roedel <joro@8bytes.org>
Tue, 4 Mar 2014 16:51:00 +0000 (17:51 +0100)
commitbb3a6b7845851d23cb826040b4c3c9c294e7cfb4
treedc1b19ef3e638e29ad73b00442a55b6800a92a40
parent7e7dfab71af851a7350ab47b1c01a2f84deacc12
iommu/vt-d: Factor out dmar_alloc_dev_scope() for later reuse

Factor out function dmar_alloc_dev_scope() from dmar_parse_dev_scope()
for later reuse.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/dmar.c
include/linux/dmar.h