aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 15:05:51 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 15:05:51 -0500
commit06991c28f37ad68e5c03777f5c3b679b56e3dac1 (patch)
tree4be75788e21c3c644fe6d39abf47693a171cf4f8 /drivers/iommu
parent460dc1eecf37263c8e3b17685ef236f0d236facb (diff)
parent74fef7a8fd1d2bd94f925d6638bb4c3049e7c381 (diff)
Merge tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core patches from Greg Kroah-Hartman: "Here is the big driver core merge for 3.9-rc1 There are two major series here, both of which touch lots of drivers all over the kernel, and will cause you some merge conflicts: - add a new function called devm_ioremap_resource() to properly be able to check return values. - remove CONFIG_EXPERIMENTAL Other than those patches, there's not much here, some minor fixes and updates" Fix up trivial conflicts * tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (221 commits) base: memory: fix soft/hard_offline_page permissions drivercore: Fix ordering between deferred_probe and exiting initcalls backlight: fix class_find_device() arguments TTY: mark tty_get_device call with the proper const values driver-core: constify data for class_find_device() firmware: Ignore abort check when no user-helper is used firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER firmware: Make user-mode helper optional firmware: Refactoring for splitting user-mode helper code Driver core: treat unregistered bus_types as having no devices watchdog: Convert to devm_ioremap_resource() thermal: Convert to devm_ioremap_resource() spi: Convert to devm_ioremap_resource() power: Convert to devm_ioremap_resource() mtd: Convert to devm_ioremap_resource() mmc: Convert to devm_ioremap_resource() mfd: Convert to devm_ioremap_resource() media: Convert to devm_ioremap_resource() iommu: Convert to devm_ioremap_resource() drm: Convert to devm_ioremap_resource() ...
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/Kconfig8
-rw-r--r--drivers/iommu/tegra-smmu.c7
2 files changed, 8 insertions, 7 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index e39f9dbf297b..01068987809d 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -65,8 +65,8 @@ config AMD_IOMMU_STATS
65 If unsure, say N. 65 If unsure, say N.
66 66
67config AMD_IOMMU_V2 67config AMD_IOMMU_V2
68 tristate "AMD IOMMU Version 2 driver (EXPERIMENTAL)" 68 tristate "AMD IOMMU Version 2 driver"
69 depends on AMD_IOMMU && PROFILING && EXPERIMENTAL 69 depends on AMD_IOMMU && PROFILING
70 select MMU_NOTIFIER 70 select MMU_NOTIFIER
71 ---help--- 71 ---help---
72 This option enables support for the AMD IOMMUv2 features of the IOMMU 72 This option enables support for the AMD IOMMUv2 features of the IOMMU
@@ -119,8 +119,8 @@ config INTEL_IOMMU_FLOPPY_WA
119 16MiB to make floppy (an ISA device) work. 119 16MiB to make floppy (an ISA device) work.
120 120
121config IRQ_REMAP 121config IRQ_REMAP
122 bool "Support for Interrupt Remapping (EXPERIMENTAL)" 122 bool "Support for Interrupt Remapping"
123 depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI && EXPERIMENTAL 123 depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI
124 select DMAR_TABLE 124 select DMAR_TABLE
125 ---help--- 125 ---help---
126 Supports Interrupt remapping for IO-APIC and MSI devices. 126 Supports Interrupt remapping for IO-APIC and MSI devices.
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index fc178893789a..f08dbcd2f175 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -19,6 +19,7 @@
19 19
20#define pr_fmt(fmt) "%s(): " fmt, __func__ 20#define pr_fmt(fmt) "%s(): " fmt, __func__
21 21
22#include <linux/err.h>
22#include <linux/module.h> 23#include <linux/module.h>
23#include <linux/platform_device.h> 24#include <linux/platform_device.h>
24#include <linux/spinlock.h> 25#include <linux/spinlock.h>
@@ -1176,9 +1177,9 @@ static int tegra_smmu_probe(struct platform_device *pdev)
1176 res = platform_get_resource(pdev, IORESOURCE_MEM, i); 1177 res = platform_get_resource(pdev, IORESOURCE_MEM, i);
1177 if (!res) 1178 if (!res)
1178 return -ENODEV; 1179 return -ENODEV;
1179 smmu->regs[i] = devm_request_and_ioremap(&pdev->dev, res); 1180 smmu->regs[i] = devm_ioremap_resource(&pdev->dev, res);
1180 if (!smmu->regs[i]) 1181 if (IS_ERR(smmu->regs[i]))
1181 return -EBUSY; 1182 return PTR_ERR(smmu->regs[i]);
1182 } 1183 }
1183 1184
1184 err = of_get_dma_window(dev->of_node, NULL, 0, NULL, &base, &size); 1185 err = of_get_dma_window(dev->of_node, NULL, 0, NULL, &base, &size);