Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 328d968e authored by Ryan Bradetich's avatar Ryan Bradetich Committed by Kyle McMartin
Browse files

[PARISC] Fix ccio_request_resource when CONFIG_IOMMU_CCIO is not defined



This patch fixes the ccio_request_resource to work properly when
the CONFIG_IOMMU_CCIO is not defined.  This patch was tested on
my E35.

Signed-off-by: default avatarRyan Bradetich <rbrad@parisc-linux.org>
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent 53faf291
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ int ccio_allocate_resource(const struct parisc_device *dev,
		unsigned long min, unsigned long max, unsigned long align);
#else /* !CONFIG_IOMMU_CCIO */
#define ccio_get_iommu(dev) NULL
#define ccio_request_resource(dev, res) request_resource(&iomem_resource, res)
#define ccio_request_resource(dev, res) insert_resource(&iomem_resource, res)
#define ccio_allocate_resource(dev, res, size, min, max, align) \
		allocate_resource(&iomem_resource, res, size, min, max, \
				align, NULL, NULL)