Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Drivers: gpu: 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, 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 Airlie <airlied@linux.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+53 -56
+1 -2
drivers/gpu/drm/ast/ast_drv.c
··· 60 60 61 61 MODULE_DEVICE_TABLE(pci, pciidlist); 62 62 63 - static int __devinit 64 - ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 63 + static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 65 64 { 66 65 return drm_get_pci_dev(pdev, ent, &driver); 67 66 }
+2 -2
drivers/gpu/drm/cirrus/cirrus_drv.c
··· 56 56 return 0; 57 57 } 58 58 59 - static int __devinit 60 - cirrus_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 59 + static int cirrus_pci_probe(struct pci_dev *pdev, 60 + const struct pci_device_id *ent) 61 61 { 62 62 int ret; 63 63
+1 -1
drivers/gpu/drm/exynos/exynos_ddc.c
··· 66 66 }, 67 67 .id_table = ddc_idtable, 68 68 .probe = s5p_ddc_probe, 69 - .remove = __devexit_p(s5p_ddc_remove), 69 + .remove = s5p_ddc_remove, 70 70 .command = NULL, 71 71 };
+1 -1
drivers/gpu/drm/exynos/exynos_drm_drv.c
··· 325 325 326 326 static struct platform_driver exynos_drm_platform_driver = { 327 327 .probe = exynos_drm_platform_probe, 328 - .remove = __devexit_p(exynos_drm_platform_remove), 328 + .remove = exynos_drm_platform_remove, 329 329 .driver = { 330 330 .owner = THIS_MODULE, 331 331 .name = "exynos-drm",
+3 -3
drivers/gpu/drm/exynos/exynos_drm_fimc.c
··· 1714 1714 fimc_write(cfg, EXYNOS_CIGCTRL); 1715 1715 } 1716 1716 1717 - static int __devinit fimc_probe(struct platform_device *pdev) 1717 + static int fimc_probe(struct platform_device *pdev) 1718 1718 { 1719 1719 struct device *dev = &pdev->dev; 1720 1720 struct fimc_context *ctx; ··· 1891 1891 return ret; 1892 1892 } 1893 1893 1894 - static int __devexit fimc_remove(struct platform_device *pdev) 1894 + static int fimc_remove(struct platform_device *pdev) 1895 1895 { 1896 1896 struct device *dev = &pdev->dev; 1897 1897 struct fimc_context *ctx = get_fimc_context(dev); ··· 1990 1990 1991 1991 struct platform_driver fimc_driver = { 1992 1992 .probe = fimc_probe, 1993 - .remove = __devexit_p(fimc_remove), 1993 + .remove = fimc_remove, 1994 1994 .id_table = fimc_driver_ids, 1995 1995 .driver = { 1996 1996 .name = "exynos-drm-fimc",
+3 -3
drivers/gpu/drm/exynos/exynos_drm_fimd.c
··· 898 898 return 0; 899 899 } 900 900 901 - static int __devinit fimd_probe(struct platform_device *pdev) 901 + static int fimd_probe(struct platform_device *pdev) 902 902 { 903 903 struct device *dev = &pdev->dev; 904 904 struct fimd_context *ctx; ··· 997 997 return 0; 998 998 } 999 999 1000 - static int __devexit fimd_remove(struct platform_device *pdev) 1000 + static int fimd_remove(struct platform_device *pdev) 1001 1001 { 1002 1002 struct device *dev = &pdev->dev; 1003 1003 struct fimd_context *ctx = platform_get_drvdata(pdev); ··· 1105 1105 1106 1106 struct platform_driver fimd_driver = { 1107 1107 .probe = fimd_probe, 1108 - .remove = __devexit_p(fimd_remove), 1108 + .remove = fimd_remove, 1109 1109 .id_table = fimd_driver_ids, 1110 1110 .driver = { 1111 1111 .name = "exynos4-fb",
+3 -3
drivers/gpu/drm/exynos/exynos_drm_g2d.c
··· 1090 1090 kfree(file_priv->g2d_priv); 1091 1091 } 1092 1092 1093 - static int __devinit g2d_probe(struct platform_device *pdev) 1093 + static int g2d_probe(struct platform_device *pdev) 1094 1094 { 1095 1095 struct device *dev = &pdev->dev; 1096 1096 struct resource *res; ··· 1188 1188 return ret; 1189 1189 } 1190 1190 1191 - static int __devexit g2d_remove(struct platform_device *pdev) 1191 + static int g2d_remove(struct platform_device *pdev) 1192 1192 { 1193 1193 struct g2d_data *g2d = platform_get_drvdata(pdev); 1194 1194 ··· 1242 1242 1243 1243 struct platform_driver g2d_driver = { 1244 1244 .probe = g2d_probe, 1245 - .remove = __devexit_p(g2d_remove), 1245 + .remove = g2d_remove, 1246 1246 .driver = { 1247 1247 .name = "s5p-g2d", 1248 1248 .owner = THIS_MODULE,
+3 -3
drivers/gpu/drm/exynos/exynos_drm_gsc.c
··· 1683 1683 gsc_write(cfg, GSC_ENABLE); 1684 1684 } 1685 1685 1686 - static int __devinit gsc_probe(struct platform_device *pdev) 1686 + static int gsc_probe(struct platform_device *pdev) 1687 1687 { 1688 1688 struct device *dev = &pdev->dev; 1689 1689 struct gsc_context *ctx; ··· 1784 1784 return ret; 1785 1785 } 1786 1786 1787 - static int __devexit gsc_remove(struct platform_device *pdev) 1787 + static int gsc_remove(struct platform_device *pdev) 1788 1788 { 1789 1789 struct device *dev = &pdev->dev; 1790 1790 struct gsc_context *ctx = get_gsc_context(dev); ··· 1860 1860 1861 1861 struct platform_driver gsc_driver = { 1862 1862 .probe = gsc_probe, 1863 - .remove = __devexit_p(gsc_remove), 1863 + .remove = gsc_remove, 1864 1864 .driver = { 1865 1865 .name = "exynos-drm-gsc", 1866 1866 .owner = THIS_MODULE,
+3 -3
drivers/gpu/drm/exynos/exynos_drm_hdmi.c
··· 385 385 mixer_ops->iommu_on(ctx->mixer_ctx->ctx, false); 386 386 } 387 387 388 - static int __devinit exynos_drm_hdmi_probe(struct platform_device *pdev) 388 + static int exynos_drm_hdmi_probe(struct platform_device *pdev) 389 389 { 390 390 struct device *dev = &pdev->dev; 391 391 struct exynos_drm_subdrv *subdrv; ··· 413 413 return 0; 414 414 } 415 415 416 - static int __devexit exynos_drm_hdmi_remove(struct platform_device *pdev) 416 + static int exynos_drm_hdmi_remove(struct platform_device *pdev) 417 417 { 418 418 struct drm_hdmi_context *ctx = platform_get_drvdata(pdev); 419 419 ··· 426 426 427 427 struct platform_driver exynos_drm_common_hdmi_driver = { 428 428 .probe = exynos_drm_hdmi_probe, 429 - .remove = __devexit_p(exynos_drm_hdmi_remove), 429 + .remove = exynos_drm_hdmi_remove, 430 430 .driver = { 431 431 .name = "exynos-drm-hdmi", 432 432 .owner = THIS_MODULE,
+3 -3
drivers/gpu/drm/exynos/exynos_drm_ipp.c
··· 1888 1888 return; 1889 1889 } 1890 1890 1891 - static int __devinit ipp_probe(struct platform_device *pdev) 1891 + static int ipp_probe(struct platform_device *pdev) 1892 1892 { 1893 1893 struct device *dev = &pdev->dev; 1894 1894 struct ipp_context *ctx; ··· 1963 1963 return ret; 1964 1964 } 1965 1965 1966 - static int __devexit ipp_remove(struct platform_device *pdev) 1966 + static int ipp_remove(struct platform_device *pdev) 1967 1967 { 1968 1968 struct ipp_context *ctx = platform_get_drvdata(pdev); 1969 1969 ··· 2050 2050 2051 2051 struct platform_driver ipp_driver = { 2052 2052 .probe = ipp_probe, 2053 - .remove = __devexit_p(ipp_remove), 2053 + .remove = ipp_remove, 2054 2054 .driver = { 2055 2055 .name = "exynos-drm-ipp", 2056 2056 .owner = THIS_MODULE,
+3 -3
drivers/gpu/drm/exynos/exynos_drm_rotator.c
··· 638 638 return 0; 639 639 } 640 640 641 - static int __devinit rotator_probe(struct platform_device *pdev) 641 + static int rotator_probe(struct platform_device *pdev) 642 642 { 643 643 struct device *dev = &pdev->dev; 644 644 struct rot_context *rot; ··· 730 730 return ret; 731 731 } 732 732 733 - static int __devexit rotator_remove(struct platform_device *pdev) 733 + static int rotator_remove(struct platform_device *pdev) 734 734 { 735 735 struct device *dev = &pdev->dev; 736 736 struct rot_context *rot = dev_get_drvdata(dev); ··· 845 845 846 846 struct platform_driver rotator_driver = { 847 847 .probe = rotator_probe, 848 - .remove = __devexit_p(rotator_remove), 848 + .remove = rotator_remove, 849 849 .id_table = rotator_driver_ids, 850 850 .driver = { 851 851 .name = "exynos-rot",
+3 -3
drivers/gpu/drm/exynos/exynos_drm_vidi.c
··· 609 609 return 0; 610 610 } 611 611 612 - static int __devinit vidi_probe(struct platform_device *pdev) 612 + static int vidi_probe(struct platform_device *pdev) 613 613 { 614 614 struct device *dev = &pdev->dev; 615 615 struct vidi_context *ctx; ··· 645 645 return 0; 646 646 } 647 647 648 - static int __devexit vidi_remove(struct platform_device *pdev) 648 + static int vidi_remove(struct platform_device *pdev) 649 649 { 650 650 struct vidi_context *ctx = platform_get_drvdata(pdev); 651 651 ··· 683 683 684 684 struct platform_driver vidi_driver = { 685 685 .probe = vidi_probe, 686 - .remove = __devexit_p(vidi_remove), 686 + .remove = vidi_remove, 687 687 .driver = { 688 688 .name = "exynos-drm-vidi", 689 689 .owner = THIS_MODULE,
+4 -4
drivers/gpu/drm/exynos/exynos_hdmi.c
··· 2305 2305 return IRQ_HANDLED; 2306 2306 } 2307 2307 2308 - static int __devinit hdmi_resources_init(struct hdmi_context *hdata) 2308 + static int hdmi_resources_init(struct hdmi_context *hdata) 2309 2309 { 2310 2310 struct device *dev = hdata->dev; 2311 2311 struct hdmi_resources *res = &hdata->res; ··· 2451 2451 }; 2452 2452 #endif 2453 2453 2454 - static int __devinit hdmi_probe(struct platform_device *pdev) 2454 + static int hdmi_probe(struct platform_device *pdev) 2455 2455 { 2456 2456 struct device *dev = &pdev->dev; 2457 2457 struct exynos_drm_hdmi_context *drm_hdmi_ctx; ··· 2607 2607 return ret; 2608 2608 } 2609 2609 2610 - static int __devexit hdmi_remove(struct platform_device *pdev) 2610 + static int hdmi_remove(struct platform_device *pdev) 2611 2611 { 2612 2612 struct device *dev = &pdev->dev; 2613 2613 struct exynos_drm_hdmi_context *ctx = platform_get_drvdata(pdev); ··· 2708 2708 2709 2709 struct platform_driver hdmi_driver = { 2710 2710 .probe = hdmi_probe, 2711 - .remove = __devexit_p(hdmi_remove), 2711 + .remove = hdmi_remove, 2712 2712 .id_table = hdmi_driver_types, 2713 2713 .driver = { 2714 2714 .name = "exynos-hdmi",
+1 -1
drivers/gpu/drm/exynos/exynos_hdmiphy.c
··· 64 64 }, 65 65 .id_table = hdmiphy_id, 66 66 .probe = hdmiphy_probe, 67 - .remove = __devexit_p(hdmiphy_remove), 67 + .remove = hdmiphy_remove, 68 68 .command = NULL, 69 69 }; 70 70 EXPORT_SYMBOL(hdmiphy_driver);
+6 -6
drivers/gpu/drm/exynos/exynos_mixer.c
··· 1029 1029 return IRQ_HANDLED; 1030 1030 } 1031 1031 1032 - static int __devinit mixer_resources_init(struct exynos_drm_hdmi_context *ctx, 1033 - struct platform_device *pdev) 1032 + static int mixer_resources_init(struct exynos_drm_hdmi_context *ctx, 1033 + struct platform_device *pdev) 1034 1034 { 1035 1035 struct mixer_context *mixer_ctx = ctx->ctx; 1036 1036 struct device *dev = &pdev->dev; ··· 1081 1081 return 0; 1082 1082 } 1083 1083 1084 - static int __devinit vp_resources_init(struct exynos_drm_hdmi_context *ctx, 1085 - struct platform_device *pdev) 1084 + static int vp_resources_init(struct exynos_drm_hdmi_context *ctx, 1085 + struct platform_device *pdev) 1086 1086 { 1087 1087 struct mixer_context *mixer_ctx = ctx->ctx; 1088 1088 struct device *dev = &pdev->dev; ··· 1155 1155 } 1156 1156 }; 1157 1157 1158 - static int __devinit mixer_probe(struct platform_device *pdev) 1158 + static int mixer_probe(struct platform_device *pdev) 1159 1159 { 1160 1160 struct device *dev = &pdev->dev; 1161 1161 struct exynos_drm_hdmi_context *drm_hdmi_ctx; ··· 1316 1316 .of_match_table = mixer_match_types, 1317 1317 }, 1318 1318 .probe = mixer_probe, 1319 - .remove = __devexit_p(mixer_remove), 1319 + .remove = mixer_remove, 1320 1320 .id_table = mixer_driver_types, 1321 1321 };
+2 -2
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c
··· 700 700 }, 701 701 .id_table = tc35876x_bridge_id, 702 702 .probe = tc35876x_bridge_probe, 703 - .remove = __devexit_p(tc35876x_bridge_remove), 703 + .remove = tc35876x_bridge_remove, 704 704 }; 705 705 706 706 /* LCD panel I2C */ ··· 741 741 }, 742 742 .id_table = cmi_lcd_i2c_id, 743 743 .probe = cmi_lcd_i2c_probe, 744 - .remove = __devexit_p(cmi_lcd_i2c_remove), 744 + .remove = cmi_lcd_i2c_remove, 745 745 }; 746 746 747 747 /* HACK to create I2C device while it's not created by platform code */
+1 -2
drivers/gpu/drm/i915/i915_drv.c
··· 877 877 return 0; 878 878 } 879 879 880 - static int __devinit 881 - i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 880 + static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 882 881 { 883 882 struct intel_device_info *intel_info = 884 883 (struct intel_device_info *) ent->driver_data;
+1 -2
drivers/gpu/drm/mgag200/mgag200_drv.c
··· 60 60 } 61 61 62 62 63 - static int __devinit 64 - mga_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 63 + static int mga_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 65 64 { 66 65 mgag200_kick_out_firmware_fb(pdev); 67 66
+2 -2
drivers/gpu/drm/nouveau/nouveau_drm.c
··· 189 189 nouveau_bo_move_init(drm); 190 190 } 191 191 192 - static int __devinit 193 - nouveau_drm_probe(struct pci_dev *pdev, const struct pci_device_id *pent) 192 + static int nouveau_drm_probe(struct pci_dev *pdev, 193 + const struct pci_device_id *pent) 194 194 { 195 195 struct nouveau_device *device; 196 196 struct apertures_struct *aper;
+2 -2
drivers/gpu/drm/radeon/radeon_drv.c
··· 306 306 return 0; 307 307 } 308 308 309 - static int __devinit 310 - radeon_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 309 + static int radeon_pci_probe(struct pci_dev *pdev, 310 + const struct pci_device_id *ent) 311 311 { 312 312 int ret; 313 313
+5 -5
drivers/gpu/drm/shmobile/shmob_drm_drv.c
··· 33 33 * Hardware initialization 34 34 */ 35 35 36 - static int __devinit shmob_drm_init_interface(struct shmob_drm_device *sdev) 36 + static int shmob_drm_init_interface(struct shmob_drm_device *sdev) 37 37 { 38 38 static const u32 ldmt1r[] = { 39 39 [SHMOB_DRM_IFACE_RGB8] = LDMT1R_MIFTYP_RGB8, ··· 67 67 return 0; 68 68 } 69 69 70 - static int __devinit shmob_drm_setup_clocks(struct shmob_drm_device *sdev, 70 + static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev, 71 71 enum shmob_drm_clk_source clksrc) 72 72 { 73 73 struct clk *clk; ··· 330 330 * Platform driver 331 331 */ 332 332 333 - static int __devinit shmob_drm_probe(struct platform_device *pdev) 333 + static int shmob_drm_probe(struct platform_device *pdev) 334 334 { 335 335 return drm_platform_init(&shmob_drm_driver, pdev); 336 336 } 337 337 338 - static int __devexit shmob_drm_remove(struct platform_device *pdev) 338 + static int shmob_drm_remove(struct platform_device *pdev) 339 339 { 340 340 drm_platform_exit(&shmob_drm_driver, pdev); 341 341 ··· 344 344 345 345 static struct platform_driver shmob_drm_platform_driver = { 346 346 .probe = shmob_drm_probe, 347 - .remove = __devexit_p(shmob_drm_remove), 347 + .remove = shmob_drm_remove, 348 348 .driver = { 349 349 .owner = THIS_MODULE, 350 350 .name = "shmob-drm",