summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Bhushan <Bharat.Bhushan@freescale.com>2014-01-07 04:11:55 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-01-29 14:45:58 (GMT)
commit8ad54e7032e5261f46a1d2f20f7725bb782fbec1 (patch)
treeae41de09176488f9ca439ca06c152fe8129a33a0
parent85532184d32f607475e13da32d4cb287a51ecc9a (diff)
downloadlinux-fsl-qoriq-8ad54e7032e5261f46a1d2f20f7725bb782fbec1.tar.xz
vfio: Fix compilation error
Replaced DOMAIN_ATTR_PAMU_ENABLE with DOMAIN_ATTR_FSL_PAMU_ENABLE and 'DOMAIN_ATTR_PAMU_STASH' with 'DOMAIN_ATTR_FSL_PAMU_STASH' as per upstream PAMU driver. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Change-Id: I5e8d18d42d4a253479308e2d1becd1bce3e768bb Reviewed-on: http://git.am.freescale.net:8181/7710 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
-rw-r--r--drivers/vfio/vfio_iommu_fsl_pamu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/vfio/vfio_iommu_fsl_pamu.c b/drivers/vfio/vfio_iommu_fsl_pamu.c
index d19ca9f..86faf72 100644
--- a/drivers/vfio/vfio_iommu_fsl_pamu.c
+++ b/drivers/vfio/vfio_iommu_fsl_pamu.c
@@ -273,14 +273,14 @@ static int vfio_disable_iommu_domain(struct vfio_iommu *iommu)
{
int enable = 0;
return iommu_domain_set_attr(iommu->domain,
- DOMAIN_ATTR_PAMU_ENABLE, &enable);
+ DOMAIN_ATTR_FSL_PAMU_ENABLE, &enable);
}
static int vfio_enable_iommu_domain(struct vfio_iommu *iommu)
{
int enable = 1;
return iommu_domain_set_attr(iommu->domain,
- DOMAIN_ATTR_PAMU_ENABLE, &enable);
+ DOMAIN_ATTR_FSL_PAMU_ENABLE, &enable);
}
static inline bool ranges_overlap(dma_addr_t start1, size_t size1,
@@ -621,7 +621,7 @@ static int vfio_handle_get_attr(struct vfio_iommu *iommu,
case VFIO_ATTR_PAMU_STASH: {
struct iommu_stash_attribute stash;
if (iommu_domain_get_attr(iommu->domain,
- DOMAIN_ATTR_PAMU_STASH, &stash)) {
+ DOMAIN_ATTR_FSL_PAMU_STASH, &stash)) {
pr_err("%s Error getting domain windows\n",
__func__);
return -EFAULT;
@@ -687,7 +687,7 @@ static int vfio_handle_set_attr(struct vfio_iommu *iommu,
stash.cpu = pamu_attr->attr_info.stash.cpu;
stash.cache = pamu_attr->attr_info.stash.cache;
if (iommu_domain_set_attr(iommu->domain,
- DOMAIN_ATTR_PAMU_STASH, &stash)) {
+ DOMAIN_ATTR_FSL_PAMU_STASH, &stash)) {
pr_err("%s Error getting domain windows\n",
__func__);
return -EFAULT;