aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 18:05:21 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:14 -0500
commitd34d6517eadc91dc7915a2095c52dc8cde94db83 (patch)
tree957ba20319fbb8e65fc01b9ae6c42ca4b023d5bd /drivers
parent6d2cea4fcaff539f803b06d5c3146966f78d47c4 (diff)
Drivers: iommu: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Joerg Roedel <joro@8bytes.org> Cc: Ohad Ben-Cohen <ohad@wizery.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Omar Ramirez Luna <omar.luna@linaro.org> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Hiroshi Doyu <hdoyu@nvidia.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Bharat Nihalani <bnihalani@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/intel-iommu.c4
-rw-r--r--drivers/iommu/omap-iommu.c6
-rw-r--r--drivers/iommu/tegra-gart.c4
-rw-r--r--drivers/iommu/tegra-smmu.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index c2c07a4a7f21..b9d091157884 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -4234,7 +4234,7 @@ static struct iommu_ops intel_iommu_ops = {
4234 .pgsize_bitmap = INTEL_IOMMU_PGSIZES, 4234 .pgsize_bitmap = INTEL_IOMMU_PGSIZES,
4235}; 4235};
4236 4236
4237static void __devinit quirk_iommu_rwbf(struct pci_dev *dev) 4237static void quirk_iommu_rwbf(struct pci_dev *dev)
4238{ 4238{
4239 /* 4239 /*
4240 * Mobile 4 Series Chipset neglects to set RWBF capability, 4240 * Mobile 4 Series Chipset neglects to set RWBF capability,
@@ -4262,7 +4262,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x2a40, quirk_iommu_rwbf);
4262#define GGC_MEMORY_SIZE_3M_VT (0xa << 8) 4262#define GGC_MEMORY_SIZE_3M_VT (0xa << 8)
4263#define GGC_MEMORY_SIZE_4M_VT (0xb << 8) 4263#define GGC_MEMORY_SIZE_4M_VT (0xb << 8)
4264 4264
4265static void __devinit quirk_calpella_no_shadow_gtt(struct pci_dev *dev) 4265static void quirk_calpella_no_shadow_gtt(struct pci_dev *dev)
4266{ 4266{
4267 unsigned short ggc; 4267 unsigned short ggc;
4268 4268
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 18108c1405e2..d33c980e9c20 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -934,7 +934,7 @@ static void omap_iommu_detach(struct omap_iommu *obj)
934/* 934/*
935 * OMAP Device MMU(IOMMU) detection 935 * OMAP Device MMU(IOMMU) detection
936 */ 936 */
937static int __devinit omap_iommu_probe(struct platform_device *pdev) 937static int omap_iommu_probe(struct platform_device *pdev)
938{ 938{
939 int err = -ENODEV; 939 int err = -ENODEV;
940 int irq; 940 int irq;
@@ -1003,7 +1003,7 @@ err_mem:
1003 return err; 1003 return err;
1004} 1004}
1005 1005
1006static int __devexit omap_iommu_remove(struct platform_device *pdev) 1006static int omap_iommu_remove(struct platform_device *pdev)
1007{ 1007{
1008 int irq; 1008 int irq;
1009 struct resource *res; 1009 struct resource *res;
@@ -1028,7 +1028,7 @@ static int __devexit omap_iommu_remove(struct platform_device *pdev)
1028 1028
1029static struct platform_driver omap_iommu_driver = { 1029static struct platform_driver omap_iommu_driver = {
1030 .probe = omap_iommu_probe, 1030 .probe = omap_iommu_probe,
1031 .remove = __devexit_p(omap_iommu_remove), 1031 .remove = omap_iommu_remove,
1032 .driver = { 1032 .driver = {
1033 .name = "omap-iommu", 1033 .name = "omap-iommu",
1034 }, 1034 },
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index 4c9db62814ff..8219f1d596ee 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -431,7 +431,7 @@ const struct dev_pm_ops tegra_gart_pm_ops = {
431}; 431};
432 432
433#ifdef CONFIG_OF 433#ifdef CONFIG_OF
434static struct of_device_id tegra_gart_of_match[] __devinitdata = { 434static struct of_device_id tegra_gart_of_match[] = {
435 { .compatible = "nvidia,tegra20-gart", }, 435 { .compatible = "nvidia,tegra20-gart", },
436 { }, 436 { },
437}; 437};
@@ -449,7 +449,7 @@ static struct platform_driver tegra_gart_driver = {
449 }, 449 },
450}; 450};
451 451
452static int __devinit tegra_gart_init(void) 452static int tegra_gart_init(void)
453{ 453{
454 return platform_driver_register(&tegra_gart_driver); 454 return platform_driver_register(&tegra_gart_driver);
455} 455}
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 25c1210c0832..fc178893789a 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -1255,7 +1255,7 @@ const struct dev_pm_ops tegra_smmu_pm_ops = {
1255}; 1255};
1256 1256
1257#ifdef CONFIG_OF 1257#ifdef CONFIG_OF
1258static struct of_device_id tegra_smmu_of_match[] __devinitdata = { 1258static struct of_device_id tegra_smmu_of_match[] = {
1259 { .compatible = "nvidia,tegra30-smmu", }, 1259 { .compatible = "nvidia,tegra30-smmu", },
1260 { }, 1260 { },
1261}; 1261};
@@ -1273,7 +1273,7 @@ static struct platform_driver tegra_smmu_driver = {
1273 }, 1273 },
1274}; 1274};
1275 1275
1276static int __devinit tegra_smmu_init(void) 1276static int tegra_smmu_init(void)
1277{ 1277{
1278 return platform_driver_register(&tegra_smmu_driver); 1278 return platform_driver_register(&tegra_smmu_driver);
1279} 1279}