diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:17:53 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:02 -0500 |
commit | 4c62e9764ab403d42f9b8871b1241fe7812f19d4 (patch) | |
tree | b4ae1ce3993ebf1d64660ba16362f9ef3de73074 /drivers/media/platform | |
parent | c571b211a70bcb04249be5cb7338f95d2ec8100f (diff) |
Drivers: media: 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,
__devinitconst, 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: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/platform')
37 files changed, 112 insertions, 111 deletions
diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index ec476ef5b709..1aad2a65d2f3 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c | |||
@@ -862,7 +862,7 @@ static struct v4l2_file_operations bcap_fops = { | |||
862 | .poll = bcap_poll | 862 | .poll = bcap_poll |
863 | }; | 863 | }; |
864 | 864 | ||
865 | static int __devinit bcap_probe(struct platform_device *pdev) | 865 | static int bcap_probe(struct platform_device *pdev) |
866 | { | 866 | { |
867 | struct bcap_device *bcap_dev; | 867 | struct bcap_device *bcap_dev; |
868 | struct video_device *vfd; | 868 | struct video_device *vfd; |
@@ -1026,7 +1026,7 @@ err_free_dev: | |||
1026 | return ret; | 1026 | return ret; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | static int __devexit bcap_remove(struct platform_device *pdev) | 1029 | static int bcap_remove(struct platform_device *pdev) |
1030 | { | 1030 | { |
1031 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); | 1031 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); |
1032 | struct bcap_device *bcap_dev = container_of(v4l2_dev, | 1032 | struct bcap_device *bcap_dev = container_of(v4l2_dev, |
@@ -1048,7 +1048,7 @@ static struct platform_driver bcap_driver = { | |||
1048 | .owner = THIS_MODULE, | 1048 | .owner = THIS_MODULE, |
1049 | }, | 1049 | }, |
1050 | .probe = bcap_probe, | 1050 | .probe = bcap_probe, |
1051 | .remove = __devexit_p(bcap_remove), | 1051 | .remove = bcap_remove, |
1052 | }; | 1052 | }; |
1053 | module_platform_driver(bcap_driver); | 1053 | module_platform_driver(bcap_driver); |
1054 | 1054 | ||
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 7b8b547f2d51..1cf8293c0fb0 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c | |||
@@ -1891,7 +1891,7 @@ static const struct of_device_id coda_dt_ids[] = { | |||
1891 | MODULE_DEVICE_TABLE(of, coda_dt_ids); | 1891 | MODULE_DEVICE_TABLE(of, coda_dt_ids); |
1892 | #endif | 1892 | #endif |
1893 | 1893 | ||
1894 | static int __devinit coda_probe(struct platform_device *pdev) | 1894 | static int coda_probe(struct platform_device *pdev) |
1895 | { | 1895 | { |
1896 | const struct of_device_id *of_id = | 1896 | const struct of_device_id *of_id = |
1897 | of_match_device(of_match_ptr(coda_dt_ids), &pdev->dev); | 1897 | of_match_device(of_match_ptr(coda_dt_ids), &pdev->dev); |
@@ -2033,7 +2033,7 @@ static int coda_remove(struct platform_device *pdev) | |||
2033 | 2033 | ||
2034 | static struct platform_driver coda_driver = { | 2034 | static struct platform_driver coda_driver = { |
2035 | .probe = coda_probe, | 2035 | .probe = coda_probe, |
2036 | .remove = __devexit_p(coda_remove), | 2036 | .remove = coda_remove, |
2037 | .driver = { | 2037 | .driver = { |
2038 | .name = CODA_NAME, | 2038 | .name = CODA_NAME, |
2039 | .owner = THIS_MODULE, | 2039 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c index 030950dcfb16..f263cabade7a 100644 --- a/drivers/media/platform/davinci/dm355_ccdc.c +++ b/drivers/media/platform/davinci/dm355_ccdc.c | |||
@@ -965,7 +965,7 @@ static struct ccdc_hw_device ccdc_hw_dev = { | |||
965 | }, | 965 | }, |
966 | }; | 966 | }; |
967 | 967 | ||
968 | static int __devinit dm355_ccdc_probe(struct platform_device *pdev) | 968 | static int dm355_ccdc_probe(struct platform_device *pdev) |
969 | { | 969 | { |
970 | void (*setup_pinmux)(void); | 970 | void (*setup_pinmux)(void); |
971 | struct resource *res; | 971 | struct resource *res; |
@@ -1069,7 +1069,7 @@ static struct platform_driver dm355_ccdc_driver = { | |||
1069 | .name = "dm355_ccdc", | 1069 | .name = "dm355_ccdc", |
1070 | .owner = THIS_MODULE, | 1070 | .owner = THIS_MODULE, |
1071 | }, | 1071 | }, |
1072 | .remove = __devexit_p(dm355_ccdc_remove), | 1072 | .remove = dm355_ccdc_remove, |
1073 | .probe = dm355_ccdc_probe, | 1073 | .probe = dm355_ccdc_probe, |
1074 | }; | 1074 | }; |
1075 | 1075 | ||
diff --git a/drivers/media/platform/davinci/dm644x_ccdc.c b/drivers/media/platform/davinci/dm644x_ccdc.c index 0215ab6ebc90..318e80512998 100644 --- a/drivers/media/platform/davinci/dm644x_ccdc.c +++ b/drivers/media/platform/davinci/dm644x_ccdc.c | |||
@@ -957,7 +957,7 @@ static struct ccdc_hw_device ccdc_hw_dev = { | |||
957 | }, | 957 | }, |
958 | }; | 958 | }; |
959 | 959 | ||
960 | static int __devinit dm644x_ccdc_probe(struct platform_device *pdev) | 960 | static int dm644x_ccdc_probe(struct platform_device *pdev) |
961 | { | 961 | { |
962 | struct resource *res; | 962 | struct resource *res; |
963 | int status = 0; | 963 | int status = 0; |
@@ -1078,7 +1078,7 @@ static struct platform_driver dm644x_ccdc_driver = { | |||
1078 | .owner = THIS_MODULE, | 1078 | .owner = THIS_MODULE, |
1079 | .pm = &dm644x_ccdc_pm_ops, | 1079 | .pm = &dm644x_ccdc_pm_ops, |
1080 | }, | 1080 | }, |
1081 | .remove = __devexit_p(dm644x_ccdc_remove), | 1081 | .remove = dm644x_ccdc_remove, |
1082 | .probe = dm644x_ccdc_probe, | 1082 | .probe = dm644x_ccdc_probe, |
1083 | }; | 1083 | }; |
1084 | 1084 | ||
diff --git a/drivers/media/platform/davinci/isif.c b/drivers/media/platform/davinci/isif.c index 2c26c3e1837e..5050f9265f48 100644 --- a/drivers/media/platform/davinci/isif.c +++ b/drivers/media/platform/davinci/isif.c | |||
@@ -1032,7 +1032,7 @@ static struct ccdc_hw_device isif_hw_dev = { | |||
1032 | }, | 1032 | }, |
1033 | }; | 1033 | }; |
1034 | 1034 | ||
1035 | static int __devinit isif_probe(struct platform_device *pdev) | 1035 | static int isif_probe(struct platform_device *pdev) |
1036 | { | 1036 | { |
1037 | void (*setup_pinmux)(void); | 1037 | void (*setup_pinmux)(void); |
1038 | struct resource *res; | 1038 | struct resource *res; |
@@ -1156,7 +1156,7 @@ static struct platform_driver isif_driver = { | |||
1156 | .name = "isif", | 1156 | .name = "isif", |
1157 | .owner = THIS_MODULE, | 1157 | .owner = THIS_MODULE, |
1158 | }, | 1158 | }, |
1159 | .remove = __devexit_p(isif_remove), | 1159 | .remove = isif_remove, |
1160 | .probe = isif_probe, | 1160 | .probe = isif_probe, |
1161 | }; | 1161 | }; |
1162 | 1162 | ||
diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 7f5cf9b347b2..841b91a3d255 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c | |||
@@ -807,7 +807,7 @@ static struct vpbe_device_ops vpbe_dev_ops = { | |||
807 | .set_mode = vpbe_set_mode, | 807 | .set_mode = vpbe_set_mode, |
808 | }; | 808 | }; |
809 | 809 | ||
810 | static __devinit int vpbe_probe(struct platform_device *pdev) | 810 | static int vpbe_probe(struct platform_device *pdev) |
811 | { | 811 | { |
812 | struct vpbe_device *vpbe_dev; | 812 | struct vpbe_device *vpbe_dev; |
813 | struct vpbe_config *cfg; | 813 | struct vpbe_config *cfg; |
diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 2bfde7958fef..e707a6f2325b 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c | |||
@@ -1662,8 +1662,8 @@ static int vpbe_device_get(struct device *dev, void *data) | |||
1662 | return 0; | 1662 | return 0; |
1663 | } | 1663 | } |
1664 | 1664 | ||
1665 | static __devinit int init_vpbe_layer(int i, struct vpbe_display *disp_dev, | 1665 | static int init_vpbe_layer(int i, struct vpbe_display *disp_dev, |
1666 | struct platform_device *pdev) | 1666 | struct platform_device *pdev) |
1667 | { | 1667 | { |
1668 | struct vpbe_layer *vpbe_display_layer = NULL; | 1668 | struct vpbe_layer *vpbe_display_layer = NULL; |
1669 | struct video_device *vbd = NULL; | 1669 | struct video_device *vbd = NULL; |
@@ -1718,9 +1718,10 @@ static __devinit int init_vpbe_layer(int i, struct vpbe_display *disp_dev, | |||
1718 | return 0; | 1718 | return 0; |
1719 | } | 1719 | } |
1720 | 1720 | ||
1721 | static __devinit int register_device(struct vpbe_layer *vpbe_display_layer, | 1721 | static int register_device(struct vpbe_layer *vpbe_display_layer, |
1722 | struct vpbe_display *disp_dev, | 1722 | struct vpbe_display *disp_dev, |
1723 | struct platform_device *pdev) { | 1723 | struct platform_device *pdev) |
1724 | { | ||
1724 | int err; | 1725 | int err; |
1725 | 1726 | ||
1726 | v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, | 1727 | v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, |
@@ -1752,7 +1753,7 @@ static __devinit int register_device(struct vpbe_layer *vpbe_display_layer, | |||
1752 | * This function creates device entries by register itself to the V4L2 driver | 1753 | * This function creates device entries by register itself to the V4L2 driver |
1753 | * and initializes fields of each layer objects | 1754 | * and initializes fields of each layer objects |
1754 | */ | 1755 | */ |
1755 | static __devinit int vpbe_display_probe(struct platform_device *pdev) | 1756 | static int vpbe_display_probe(struct platform_device *pdev) |
1756 | { | 1757 | { |
1757 | struct vpbe_layer *vpbe_display_layer; | 1758 | struct vpbe_layer *vpbe_display_layer; |
1758 | struct vpbe_display *disp_dev; | 1759 | struct vpbe_display *disp_dev; |
@@ -1886,7 +1887,7 @@ static struct platform_driver vpbe_display_driver = { | |||
1886 | .bus = &platform_bus_type, | 1887 | .bus = &platform_bus_type, |
1887 | }, | 1888 | }, |
1888 | .probe = vpbe_display_probe, | 1889 | .probe = vpbe_display_probe, |
1889 | .remove = __devexit_p(vpbe_display_remove), | 1890 | .remove = vpbe_display_remove, |
1890 | }; | 1891 | }; |
1891 | 1892 | ||
1892 | module_platform_driver(vpbe_display_driver); | 1893 | module_platform_driver(vpbe_display_driver); |
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c index 8be492cd8ed4..be9d3e1b4868 100644 --- a/drivers/media/platform/davinci/vpfe_capture.c +++ b/drivers/media/platform/davinci/vpfe_capture.c | |||
@@ -1831,7 +1831,7 @@ static struct vpfe_device *vpfe_initialize(void) | |||
1831 | * itself to the V4L2 driver and initializes fields of each | 1831 | * itself to the V4L2 driver and initializes fields of each |
1832 | * device objects | 1832 | * device objects |
1833 | */ | 1833 | */ |
1834 | static __devinit int vpfe_probe(struct platform_device *pdev) | 1834 | static int vpfe_probe(struct platform_device *pdev) |
1835 | { | 1835 | { |
1836 | struct vpfe_subdev_info *sdinfo; | 1836 | struct vpfe_subdev_info *sdinfo; |
1837 | struct vpfe_config *vpfe_cfg; | 1837 | struct vpfe_config *vpfe_cfg; |
@@ -2038,7 +2038,7 @@ probe_free_dev_mem: | |||
2038 | /* | 2038 | /* |
2039 | * vpfe_remove : It un-register device from V4L2 driver | 2039 | * vpfe_remove : It un-register device from V4L2 driver |
2040 | */ | 2040 | */ |
2041 | static int __devexit vpfe_remove(struct platform_device *pdev) | 2041 | static int vpfe_remove(struct platform_device *pdev) |
2042 | { | 2042 | { |
2043 | struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); | 2043 | struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); |
2044 | 2044 | ||
@@ -2075,7 +2075,7 @@ static struct platform_driver vpfe_driver = { | |||
2075 | .pm = &vpfe_dev_pm_ops, | 2075 | .pm = &vpfe_dev_pm_ops, |
2076 | }, | 2076 | }, |
2077 | .probe = vpfe_probe, | 2077 | .probe = vpfe_probe, |
2078 | .remove = __devexit_p(vpfe_remove), | 2078 | .remove = vpfe_remove, |
2079 | }; | 2079 | }; |
2080 | 2080 | ||
2081 | module_platform_driver(vpfe_driver); | 2081 | module_platform_driver(vpfe_driver); |
diff --git a/drivers/media/platform/davinci/vpif.c b/drivers/media/platform/davinci/vpif.c index 0d6cc8e4deb2..28638a86f129 100644 --- a/drivers/media/platform/davinci/vpif.c +++ b/drivers/media/platform/davinci/vpif.c | |||
@@ -419,7 +419,7 @@ int vpif_channel_getfid(u8 channel_id) | |||
419 | } | 419 | } |
420 | EXPORT_SYMBOL(vpif_channel_getfid); | 420 | EXPORT_SYMBOL(vpif_channel_getfid); |
421 | 421 | ||
422 | static int __devinit vpif_probe(struct platform_device *pdev) | 422 | static int vpif_probe(struct platform_device *pdev) |
423 | { | 423 | { |
424 | int status = 0; | 424 | int status = 0; |
425 | 425 | ||
@@ -457,7 +457,7 @@ fail: | |||
457 | return status; | 457 | return status; |
458 | } | 458 | } |
459 | 459 | ||
460 | static int __devexit vpif_remove(struct platform_device *pdev) | 460 | static int vpif_remove(struct platform_device *pdev) |
461 | { | 461 | { |
462 | if (vpif_clk) { | 462 | if (vpif_clk) { |
463 | clk_disable_unprepare(vpif_clk); | 463 | clk_disable_unprepare(vpif_clk); |
@@ -498,7 +498,7 @@ static struct platform_driver vpif_driver = { | |||
498 | .owner = THIS_MODULE, | 498 | .owner = THIS_MODULE, |
499 | .pm = vpif_pm_ops, | 499 | .pm = vpif_pm_ops, |
500 | }, | 500 | }, |
501 | .remove = __devexit_p(vpif_remove), | 501 | .remove = vpif_remove, |
502 | .probe = vpif_probe, | 502 | .probe = vpif_probe, |
503 | }; | 503 | }; |
504 | 504 | ||
diff --git a/drivers/media/platform/davinci/vpss.c b/drivers/media/platform/davinci/vpss.c index 146e4b01ac17..cdbff88e0f1e 100644 --- a/drivers/media/platform/davinci/vpss.c +++ b/drivers/media/platform/davinci/vpss.c | |||
@@ -357,7 +357,7 @@ void dm365_vpss_set_pg_frame_size(struct vpss_pg_frame_size frame_size) | |||
357 | } | 357 | } |
358 | EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size); | 358 | EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size); |
359 | 359 | ||
360 | static int __devinit vpss_probe(struct platform_device *pdev) | 360 | static int vpss_probe(struct platform_device *pdev) |
361 | { | 361 | { |
362 | struct resource *r1, *r2; | 362 | struct resource *r1, *r2; |
363 | char *platform_name; | 363 | char *platform_name; |
@@ -445,7 +445,7 @@ fail1: | |||
445 | return status; | 445 | return status; |
446 | } | 446 | } |
447 | 447 | ||
448 | static int __devexit vpss_remove(struct platform_device *pdev) | 448 | static int vpss_remove(struct platform_device *pdev) |
449 | { | 449 | { |
450 | struct resource *res; | 450 | struct resource *res; |
451 | 451 | ||
@@ -465,7 +465,7 @@ static struct platform_driver vpss_driver = { | |||
465 | .name = "vpss", | 465 | .name = "vpss", |
466 | .owner = THIS_MODULE, | 466 | .owner = THIS_MODULE, |
467 | }, | 467 | }, |
468 | .remove = __devexit_p(vpss_remove), | 468 | .remove = vpss_remove, |
469 | .probe = vpss_probe, | 469 | .probe = vpss_probe, |
470 | }; | 470 | }; |
471 | 471 | ||
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index cc7b218d047c..2b1b9f30e1f9 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c | |||
@@ -1151,7 +1151,7 @@ err_clk: | |||
1151 | return ret; | 1151 | return ret; |
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | static int __devexit gsc_remove(struct platform_device *pdev) | 1154 | static int gsc_remove(struct platform_device *pdev) |
1155 | { | 1155 | { |
1156 | struct gsc_dev *gsc = platform_get_drvdata(pdev); | 1156 | struct gsc_dev *gsc = platform_get_drvdata(pdev); |
1157 | 1157 | ||
@@ -1237,7 +1237,7 @@ static const struct dev_pm_ops gsc_pm_ops = { | |||
1237 | 1237 | ||
1238 | static struct platform_driver gsc_driver = { | 1238 | static struct platform_driver gsc_driver = { |
1239 | .probe = gsc_probe, | 1239 | .probe = gsc_probe, |
1240 | .remove = __devexit_p(gsc_remove), | 1240 | .remove = gsc_remove, |
1241 | .id_table = gsc_driver_ids, | 1241 | .id_table = gsc_driver_ids, |
1242 | .driver = { | 1242 | .driver = { |
1243 | .name = GSC_MODULE_NAME, | 1243 | .name = GSC_MODULE_NAME, |
diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index a8ddb0cacab8..9115a2c8d075 100644 --- a/drivers/media/platform/fsl-viu.c +++ b/drivers/media/platform/fsl-viu.c | |||
@@ -1478,7 +1478,7 @@ static struct video_device viu_template = { | |||
1478 | .current_norm = V4L2_STD_NTSC_M, | 1478 | .current_norm = V4L2_STD_NTSC_M, |
1479 | }; | 1479 | }; |
1480 | 1480 | ||
1481 | static int __devinit viu_of_probe(struct platform_device *op) | 1481 | static int viu_of_probe(struct platform_device *op) |
1482 | { | 1482 | { |
1483 | struct viu_dev *viu_dev; | 1483 | struct viu_dev *viu_dev; |
1484 | struct video_device *vdev; | 1484 | struct video_device *vdev; |
@@ -1615,7 +1615,7 @@ err: | |||
1615 | return ret; | 1615 | return ret; |
1616 | } | 1616 | } |
1617 | 1617 | ||
1618 | static int __devexit viu_of_remove(struct platform_device *op) | 1618 | static int viu_of_remove(struct platform_device *op) |
1619 | { | 1619 | { |
1620 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); | 1620 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); |
1621 | struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); | 1621 | struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); |
@@ -1668,7 +1668,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_viu_of_match); | |||
1668 | 1668 | ||
1669 | static struct platform_driver viu_of_platform_driver = { | 1669 | static struct platform_driver viu_of_platform_driver = { |
1670 | .probe = viu_of_probe, | 1670 | .probe = viu_of_probe, |
1671 | .remove = __devexit_p(viu_of_remove), | 1671 | .remove = viu_of_remove, |
1672 | #ifdef CONFIG_PM | 1672 | #ifdef CONFIG_PM |
1673 | .suspend = viu_suspend, | 1673 | .suspend = viu_suspend, |
1674 | .resume = viu_resume, | 1674 | .resume = viu_resume, |
diff --git a/drivers/media/platform/omap24xxcam.c b/drivers/media/platform/omap24xxcam.c index 70f45c381318..8b7ccea982e7 100644 --- a/drivers/media/platform/omap24xxcam.c +++ b/drivers/media/platform/omap24xxcam.c | |||
@@ -1736,7 +1736,7 @@ static struct v4l2_int_device omap24xxcam = { | |||
1736 | * | 1736 | * |
1737 | */ | 1737 | */ |
1738 | 1738 | ||
1739 | static int __devinit omap24xxcam_probe(struct platform_device *pdev) | 1739 | static int omap24xxcam_probe(struct platform_device *pdev) |
1740 | { | 1740 | { |
1741 | struct omap24xxcam_device *cam; | 1741 | struct omap24xxcam_device *cam; |
1742 | struct resource *mem; | 1742 | struct resource *mem; |
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 2e8c0cb79c3d..e4aaee91201d 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c | |||
@@ -1990,7 +1990,7 @@ error_csiphy: | |||
1990 | * | 1990 | * |
1991 | * Always returns 0. | 1991 | * Always returns 0. |
1992 | */ | 1992 | */ |
1993 | static int __devexit isp_remove(struct platform_device *pdev) | 1993 | static int isp_remove(struct platform_device *pdev) |
1994 | { | 1994 | { |
1995 | struct isp_device *isp = platform_get_drvdata(pdev); | 1995 | struct isp_device *isp = platform_get_drvdata(pdev); |
1996 | int i; | 1996 | int i; |
@@ -2071,7 +2071,7 @@ static int isp_map_mem_resource(struct platform_device *pdev, | |||
2071 | * -EINVAL if couldn't install ISR, | 2071 | * -EINVAL if couldn't install ISR, |
2072 | * or clk_get return error value. | 2072 | * or clk_get return error value. |
2073 | */ | 2073 | */ |
2074 | static int __devinit isp_probe(struct platform_device *pdev) | 2074 | static int isp_probe(struct platform_device *pdev) |
2075 | { | 2075 | { |
2076 | struct isp_platform_data *pdata = pdev->dev.platform_data; | 2076 | struct isp_platform_data *pdata = pdev->dev.platform_data; |
2077 | struct isp_device *isp; | 2077 | struct isp_device *isp; |
@@ -2250,7 +2250,7 @@ MODULE_DEVICE_TABLE(platform, omap3isp_id_table); | |||
2250 | 2250 | ||
2251 | static struct platform_driver omap3isp_driver = { | 2251 | static struct platform_driver omap3isp_driver = { |
2252 | .probe = isp_probe, | 2252 | .probe = isp_probe, |
2253 | .remove = __devexit_p(isp_remove), | 2253 | .remove = isp_remove, |
2254 | .id_table = omap3isp_id_table, | 2254 | .id_table = omap3isp_id_table, |
2255 | .driver = { | 2255 | .driver = { |
2256 | .owner = THIS_MODULE, | 2256 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c index 0dd65376c067..e2716c35f8f1 100644 --- a/drivers/media/platform/s3c-camif/camif-core.c +++ b/drivers/media/platform/s3c-camif/camif-core.c | |||
@@ -531,7 +531,7 @@ err_sd: | |||
531 | return ret; | 531 | return ret; |
532 | } | 532 | } |
533 | 533 | ||
534 | static int __devexit s3c_camif_remove(struct platform_device *pdev) | 534 | static int s3c_camif_remove(struct platform_device *pdev) |
535 | { | 535 | { |
536 | struct camif_dev *camif = platform_get_drvdata(pdev); | 536 | struct camif_dev *camif = platform_get_drvdata(pdev); |
537 | struct s3c_camif_plat_data *pdata = &camif->pdata; | 537 | struct s3c_camif_plat_data *pdata = &camif->pdata; |
@@ -645,7 +645,7 @@ static const struct dev_pm_ops s3c_camif_pm_ops = { | |||
645 | 645 | ||
646 | static struct platform_driver s3c_camif_driver = { | 646 | static struct platform_driver s3c_camif_driver = { |
647 | .probe = s3c_camif_probe, | 647 | .probe = s3c_camif_probe, |
648 | .remove = __devexit_p(s3c_camif_remove), | 648 | .remove = s3c_camif_remove, |
649 | .id_table = s3c_camif_driver_ids, | 649 | .id_table = s3c_camif_driver_ids, |
650 | .driver = { | 650 | .driver = { |
651 | .name = S3C_CAMIF_DRIVER_NAME, | 651 | .name = S3C_CAMIF_DRIVER_NAME, |
diff --git a/drivers/media/platform/s5p-fimc/fimc-core.c b/drivers/media/platform/s5p-fimc/fimc-core.c index 8d0d2b94a135..545b46ae12a1 100644 --- a/drivers/media/platform/s5p-fimc/fimc-core.c +++ b/drivers/media/platform/s5p-fimc/fimc-core.c | |||
@@ -1035,7 +1035,7 @@ static int fimc_suspend(struct device *dev) | |||
1035 | } | 1035 | } |
1036 | #endif /* CONFIG_PM_SLEEP */ | 1036 | #endif /* CONFIG_PM_SLEEP */ |
1037 | 1037 | ||
1038 | static int __devexit fimc_remove(struct platform_device *pdev) | 1038 | static int fimc_remove(struct platform_device *pdev) |
1039 | { | 1039 | { |
1040 | struct fimc_dev *fimc = platform_get_drvdata(pdev); | 1040 | struct fimc_dev *fimc = platform_get_drvdata(pdev); |
1041 | 1041 | ||
@@ -1234,7 +1234,7 @@ static const struct dev_pm_ops fimc_pm_ops = { | |||
1234 | 1234 | ||
1235 | static struct platform_driver fimc_driver = { | 1235 | static struct platform_driver fimc_driver = { |
1236 | .probe = fimc_probe, | 1236 | .probe = fimc_probe, |
1237 | .remove = __devexit_p(fimc_remove), | 1237 | .remove = fimc_remove, |
1238 | .id_table = fimc_driver_ids, | 1238 | .id_table = fimc_driver_ids, |
1239 | .driver = { | 1239 | .driver = { |
1240 | .name = FIMC_MODULE_NAME, | 1240 | .name = FIMC_MODULE_NAME, |
diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c index 1b309a72f09f..ed67220d0a64 100644 --- a/drivers/media/platform/s5p-fimc/fimc-lite.c +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c | |||
@@ -1406,7 +1406,7 @@ static int fimc_lite_clk_get(struct fimc_lite *fimc) | |||
1406 | return ret; | 1406 | return ret; |
1407 | } | 1407 | } |
1408 | 1408 | ||
1409 | static int __devinit fimc_lite_probe(struct platform_device *pdev) | 1409 | static int fimc_lite_probe(struct platform_device *pdev) |
1410 | { | 1410 | { |
1411 | struct flite_drvdata *drv_data = fimc_lite_get_drvdata(pdev); | 1411 | struct flite_drvdata *drv_data = fimc_lite_get_drvdata(pdev); |
1412 | struct fimc_lite *fimc; | 1412 | struct fimc_lite *fimc; |
@@ -1547,7 +1547,7 @@ static int fimc_lite_suspend(struct device *dev) | |||
1547 | } | 1547 | } |
1548 | #endif /* CONFIG_PM_SLEEP */ | 1548 | #endif /* CONFIG_PM_SLEEP */ |
1549 | 1549 | ||
1550 | static int __devexit fimc_lite_remove(struct platform_device *pdev) | 1550 | static int fimc_lite_remove(struct platform_device *pdev) |
1551 | { | 1551 | { |
1552 | struct fimc_lite *fimc = platform_get_drvdata(pdev); | 1552 | struct fimc_lite *fimc = platform_get_drvdata(pdev); |
1553 | struct device *dev = &pdev->dev; | 1553 | struct device *dev = &pdev->dev; |
@@ -1595,7 +1595,7 @@ static const struct dev_pm_ops fimc_lite_pm_ops = { | |||
1595 | 1595 | ||
1596 | static struct platform_driver fimc_lite_driver = { | 1596 | static struct platform_driver fimc_lite_driver = { |
1597 | .probe = fimc_lite_probe, | 1597 | .probe = fimc_lite_probe, |
1598 | .remove = __devexit_p(fimc_lite_remove), | 1598 | .remove = fimc_lite_remove, |
1599 | .id_table = fimc_lite_driver_ids, | 1599 | .id_table = fimc_lite_driver_ids, |
1600 | .driver = { | 1600 | .driver = { |
1601 | .name = FIMC_LITE_DRV_NAME, | 1601 | .name = FIMC_LITE_DRV_NAME, |
diff --git a/drivers/media/platform/s5p-fimc/fimc-mdevice.c b/drivers/media/platform/s5p-fimc/fimc-mdevice.c index 1bd5678cfeb9..4ab99f3a7b09 100644 --- a/drivers/media/platform/s5p-fimc/fimc-mdevice.c +++ b/drivers/media/platform/s5p-fimc/fimc-mdevice.c | |||
@@ -1000,7 +1000,7 @@ err_md: | |||
1000 | return ret; | 1000 | return ret; |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | static int __devexit fimc_md_remove(struct platform_device *pdev) | 1003 | static int fimc_md_remove(struct platform_device *pdev) |
1004 | { | 1004 | { |
1005 | struct fimc_md *fmd = platform_get_drvdata(pdev); | 1005 | struct fimc_md *fmd = platform_get_drvdata(pdev); |
1006 | 1006 | ||
@@ -1015,7 +1015,7 @@ static int __devexit fimc_md_remove(struct platform_device *pdev) | |||
1015 | 1015 | ||
1016 | static struct platform_driver fimc_md_driver = { | 1016 | static struct platform_driver fimc_md_driver = { |
1017 | .probe = fimc_md_probe, | 1017 | .probe = fimc_md_probe, |
1018 | .remove = __devexit_p(fimc_md_remove), | 1018 | .remove = fimc_md_remove, |
1019 | .driver = { | 1019 | .driver = { |
1020 | .name = "s5p-fimc-md", | 1020 | .name = "s5p-fimc-md", |
1021 | .owner = THIS_MODULE, | 1021 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-fimc/mipi-csis.c b/drivers/media/platform/s5p-fimc/mipi-csis.c index 4c961b1b68e6..ec3fa7d75306 100644 --- a/drivers/media/platform/s5p-fimc/mipi-csis.c +++ b/drivers/media/platform/s5p-fimc/mipi-csis.c | |||
@@ -654,7 +654,7 @@ static irqreturn_t s5pcsis_irq_handler(int irq, void *dev_id) | |||
654 | return IRQ_HANDLED; | 654 | return IRQ_HANDLED; |
655 | } | 655 | } |
656 | 656 | ||
657 | static int __devinit s5pcsis_probe(struct platform_device *pdev) | 657 | static int s5pcsis_probe(struct platform_device *pdev) |
658 | { | 658 | { |
659 | struct s5p_platform_mipi_csis *pdata; | 659 | struct s5p_platform_mipi_csis *pdata; |
660 | struct resource *mem_res; | 660 | struct resource *mem_res; |
@@ -851,7 +851,7 @@ static int s5pcsis_runtime_resume(struct device *dev) | |||
851 | } | 851 | } |
852 | #endif | 852 | #endif |
853 | 853 | ||
854 | static int __devexit s5pcsis_remove(struct platform_device *pdev) | 854 | static int s5pcsis_remove(struct platform_device *pdev) |
855 | { | 855 | { |
856 | struct v4l2_subdev *sd = platform_get_drvdata(pdev); | 856 | struct v4l2_subdev *sd = platform_get_drvdata(pdev); |
857 | struct csis_state *state = sd_to_csis_state(sd); | 857 | struct csis_state *state = sd_to_csis_state(sd); |
@@ -876,7 +876,7 @@ static const struct dev_pm_ops s5pcsis_pm_ops = { | |||
876 | 876 | ||
877 | static struct platform_driver s5pcsis_driver = { | 877 | static struct platform_driver s5pcsis_driver = { |
878 | .probe = s5pcsis_probe, | 878 | .probe = s5pcsis_probe, |
879 | .remove = __devexit_p(s5pcsis_remove), | 879 | .remove = s5pcsis_remove, |
880 | .driver = { | 880 | .driver = { |
881 | .name = CSIS_DRIVER_NAME, | 881 | .name = CSIS_DRIVER_NAME, |
882 | .owner = THIS_MODULE, | 882 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 3afe879d54d7..379f57433711 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c | |||
@@ -1203,7 +1203,7 @@ err_res: | |||
1203 | } | 1203 | } |
1204 | 1204 | ||
1205 | /* Remove the driver */ | 1205 | /* Remove the driver */ |
1206 | static int __devexit s5p_mfc_remove(struct platform_device *pdev) | 1206 | static int s5p_mfc_remove(struct platform_device *pdev) |
1207 | { | 1207 | { |
1208 | struct s5p_mfc_dev *dev = platform_get_drvdata(pdev); | 1208 | struct s5p_mfc_dev *dev = platform_get_drvdata(pdev); |
1209 | 1209 | ||
@@ -1368,7 +1368,7 @@ MODULE_DEVICE_TABLE(platform, mfc_driver_ids); | |||
1368 | 1368 | ||
1369 | static struct platform_driver s5p_mfc_driver = { | 1369 | static struct platform_driver s5p_mfc_driver = { |
1370 | .probe = s5p_mfc_probe, | 1370 | .probe = s5p_mfc_probe, |
1371 | .remove = __devexit_p(s5p_mfc_remove), | 1371 | .remove = s5p_mfc_remove, |
1372 | .id_table = mfc_driver_ids, | 1372 | .id_table = mfc_driver_ids, |
1373 | .driver = { | 1373 | .driver = { |
1374 | .name = S5P_MFC_NAME, | 1374 | .name = S5P_MFC_NAME, |
diff --git a/drivers/media/platform/s5p-tv/hdmi_drv.c b/drivers/media/platform/s5p-tv/hdmi_drv.c index 8a9cf43018f6..7c1116c73bf3 100644 --- a/drivers/media/platform/s5p-tv/hdmi_drv.c +++ b/drivers/media/platform/s5p-tv/hdmi_drv.c | |||
@@ -830,7 +830,7 @@ fail: | |||
830 | return -ENODEV; | 830 | return -ENODEV; |
831 | } | 831 | } |
832 | 832 | ||
833 | static int __devinit hdmi_probe(struct platform_device *pdev) | 833 | static int hdmi_probe(struct platform_device *pdev) |
834 | { | 834 | { |
835 | struct device *dev = &pdev->dev; | 835 | struct device *dev = &pdev->dev; |
836 | struct resource *res; | 836 | struct resource *res; |
@@ -979,7 +979,7 @@ fail: | |||
979 | return ret; | 979 | return ret; |
980 | } | 980 | } |
981 | 981 | ||
982 | static int __devexit hdmi_remove(struct platform_device *pdev) | 982 | static int hdmi_remove(struct platform_device *pdev) |
983 | { | 983 | { |
984 | struct device *dev = &pdev->dev; | 984 | struct device *dev = &pdev->dev; |
985 | struct v4l2_subdev *sd = dev_get_drvdata(dev); | 985 | struct v4l2_subdev *sd = dev_get_drvdata(dev); |
@@ -997,7 +997,7 @@ static int __devexit hdmi_remove(struct platform_device *pdev) | |||
997 | 997 | ||
998 | static struct platform_driver hdmi_driver __refdata = { | 998 | static struct platform_driver hdmi_driver __refdata = { |
999 | .probe = hdmi_probe, | 999 | .probe = hdmi_probe, |
1000 | .remove = __devexit_p(hdmi_remove), | 1000 | .remove = hdmi_remove, |
1001 | .id_table = hdmi_driver_types, | 1001 | .id_table = hdmi_driver_types, |
1002 | .driver = { | 1002 | .driver = { |
1003 | .name = "s5p-hdmi", | 1003 | .name = "s5p-hdmi", |
diff --git a/drivers/media/platform/s5p-tv/hdmiphy_drv.c b/drivers/media/platform/s5p-tv/hdmiphy_drv.c index f67b38631801..06b5d2dbb2d9 100644 --- a/drivers/media/platform/s5p-tv/hdmiphy_drv.c +++ b/drivers/media/platform/s5p-tv/hdmiphy_drv.c | |||
@@ -279,8 +279,8 @@ static const struct v4l2_subdev_ops hdmiphy_ops = { | |||
279 | .video = &hdmiphy_video_ops, | 279 | .video = &hdmiphy_video_ops, |
280 | }; | 280 | }; |
281 | 281 | ||
282 | static int __devinit hdmiphy_probe(struct i2c_client *client, | 282 | static int hdmiphy_probe(struct i2c_client *client, |
283 | const struct i2c_device_id *id) | 283 | const struct i2c_device_id *id) |
284 | { | 284 | { |
285 | struct hdmiphy_ctx *ctx; | 285 | struct hdmiphy_ctx *ctx; |
286 | 286 | ||
@@ -295,7 +295,7 @@ static int __devinit hdmiphy_probe(struct i2c_client *client, | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int __devexit hdmiphy_remove(struct i2c_client *client) | 298 | static int hdmiphy_remove(struct i2c_client *client) |
299 | { | 299 | { |
300 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 300 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
301 | struct hdmiphy_ctx *ctx = sd_to_ctx(sd); | 301 | struct hdmiphy_ctx *ctx = sd_to_ctx(sd); |
@@ -322,7 +322,7 @@ static struct i2c_driver hdmiphy_driver = { | |||
322 | .owner = THIS_MODULE, | 322 | .owner = THIS_MODULE, |
323 | }, | 323 | }, |
324 | .probe = hdmiphy_probe, | 324 | .probe = hdmiphy_probe, |
325 | .remove = __devexit_p(hdmiphy_remove), | 325 | .remove = hdmiphy_remove, |
326 | .id_table = hdmiphy_id, | 326 | .id_table = hdmiphy_id, |
327 | }; | 327 | }; |
328 | 328 | ||
diff --git a/drivers/media/platform/s5p-tv/mixer.h b/drivers/media/platform/s5p-tv/mixer.h index ddb422e23550..b671e20e9318 100644 --- a/drivers/media/platform/s5p-tv/mixer.h +++ b/drivers/media/platform/s5p-tv/mixer.h | |||
@@ -290,7 +290,7 @@ static inline struct v4l2_subdev *to_outsd(struct mxr_device *mdev) | |||
290 | struct mxr_platform_data; | 290 | struct mxr_platform_data; |
291 | 291 | ||
292 | /** acquiring common video resources */ | 292 | /** acquiring common video resources */ |
293 | int __devinit mxr_acquire_video(struct mxr_device *mdev, | 293 | int mxr_acquire_video(struct mxr_device *mdev, |
294 | struct mxr_output_conf *output_cont, int output_count); | 294 | struct mxr_output_conf *output_cont, int output_count); |
295 | 295 | ||
296 | /** releasing common video resources */ | 296 | /** releasing common video resources */ |
diff --git a/drivers/media/platform/s5p-tv/mixer_drv.c b/drivers/media/platform/s5p-tv/mixer_drv.c index ca0f29717448..02faea03aa7d 100644 --- a/drivers/media/platform/s5p-tv/mixer_drv.c +++ b/drivers/media/platform/s5p-tv/mixer_drv.c | |||
@@ -151,8 +151,8 @@ void mxr_power_put(struct mxr_device *mdev) | |||
151 | 151 | ||
152 | /* --------- RESOURCE MANAGEMENT -------------*/ | 152 | /* --------- RESOURCE MANAGEMENT -------------*/ |
153 | 153 | ||
154 | static int __devinit mxr_acquire_plat_resources(struct mxr_device *mdev, | 154 | static int mxr_acquire_plat_resources(struct mxr_device *mdev, |
155 | struct platform_device *pdev) | 155 | struct platform_device *pdev) |
156 | { | 156 | { |
157 | struct resource *res; | 157 | struct resource *res; |
158 | int ret; | 158 | int ret; |
@@ -271,8 +271,8 @@ fail: | |||
271 | return -ENODEV; | 271 | return -ENODEV; |
272 | } | 272 | } |
273 | 273 | ||
274 | static int __devinit mxr_acquire_resources(struct mxr_device *mdev, | 274 | static int mxr_acquire_resources(struct mxr_device *mdev, |
275 | struct platform_device *pdev) | 275 | struct platform_device *pdev) |
276 | { | 276 | { |
277 | int ret; | 277 | int ret; |
278 | ret = mxr_acquire_plat_resources(mdev, pdev); | 278 | ret = mxr_acquire_plat_resources(mdev, pdev); |
@@ -310,8 +310,8 @@ static void mxr_release_layers(struct mxr_device *mdev) | |||
310 | mxr_layer_release(mdev->layer[i]); | 310 | mxr_layer_release(mdev->layer[i]); |
311 | } | 311 | } |
312 | 312 | ||
313 | static int __devinit mxr_acquire_layers(struct mxr_device *mdev, | 313 | static int mxr_acquire_layers(struct mxr_device *mdev, |
314 | struct mxr_platform_data *pdata) | 314 | struct mxr_platform_data *pdata) |
315 | { | 315 | { |
316 | mdev->layer[0] = mxr_graph_layer_create(mdev, 0); | 316 | mdev->layer[0] = mxr_graph_layer_create(mdev, 0); |
317 | mdev->layer[1] = mxr_graph_layer_create(mdev, 1); | 317 | mdev->layer[1] = mxr_graph_layer_create(mdev, 1); |
@@ -372,7 +372,7 @@ static const struct dev_pm_ops mxr_pm_ops = { | |||
372 | 372 | ||
373 | /* --------- DRIVER INITIALIZATION ---------- */ | 373 | /* --------- DRIVER INITIALIZATION ---------- */ |
374 | 374 | ||
375 | static int __devinit mxr_probe(struct platform_device *pdev) | 375 | static int mxr_probe(struct platform_device *pdev) |
376 | { | 376 | { |
377 | struct device *dev = &pdev->dev; | 377 | struct device *dev = &pdev->dev; |
378 | struct mxr_platform_data *pdata = dev->platform_data; | 378 | struct mxr_platform_data *pdata = dev->platform_data; |
@@ -431,7 +431,7 @@ fail: | |||
431 | return ret; | 431 | return ret; |
432 | } | 432 | } |
433 | 433 | ||
434 | static int __devexit mxr_remove(struct platform_device *pdev) | 434 | static int mxr_remove(struct platform_device *pdev) |
435 | { | 435 | { |
436 | struct device *dev = &pdev->dev; | 436 | struct device *dev = &pdev->dev; |
437 | struct mxr_device *mdev = to_mdev(dev); | 437 | struct mxr_device *mdev = to_mdev(dev); |
@@ -450,7 +450,7 @@ static int __devexit mxr_remove(struct platform_device *pdev) | |||
450 | 450 | ||
451 | static struct platform_driver mxr_driver __refdata = { | 451 | static struct platform_driver mxr_driver __refdata = { |
452 | .probe = mxr_probe, | 452 | .probe = mxr_probe, |
453 | .remove = __devexit_p(mxr_remove), | 453 | .remove = mxr_remove, |
454 | .driver = { | 454 | .driver = { |
455 | .name = MXR_DRIVER_NAME, | 455 | .name = MXR_DRIVER_NAME, |
456 | .owner = THIS_MODULE, | 456 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-tv/mixer_video.c b/drivers/media/platform/s5p-tv/mixer_video.c index 7379e77bf4e1..1f3b7436511c 100644 --- a/drivers/media/platform/s5p-tv/mixer_video.c +++ b/drivers/media/platform/s5p-tv/mixer_video.c | |||
@@ -62,8 +62,8 @@ done: | |||
62 | return sd; | 62 | return sd; |
63 | } | 63 | } |
64 | 64 | ||
65 | int __devinit mxr_acquire_video(struct mxr_device *mdev, | 65 | int mxr_acquire_video(struct mxr_device *mdev, |
66 | struct mxr_output_conf *output_conf, int output_count) | 66 | struct mxr_output_conf *output_conf, int output_count) |
67 | { | 67 | { |
68 | struct device *dev = mdev->dev; | 68 | struct device *dev = mdev->dev; |
69 | struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; | 69 | struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; |
diff --git a/drivers/media/platform/s5p-tv/sdo_drv.c b/drivers/media/platform/s5p-tv/sdo_drv.c index ad68bbed014e..91a6939a270a 100644 --- a/drivers/media/platform/s5p-tv/sdo_drv.c +++ b/drivers/media/platform/s5p-tv/sdo_drv.c | |||
@@ -292,7 +292,7 @@ static const struct dev_pm_ops sdo_pm_ops = { | |||
292 | .runtime_resume = sdo_runtime_resume, | 292 | .runtime_resume = sdo_runtime_resume, |
293 | }; | 293 | }; |
294 | 294 | ||
295 | static int __devinit sdo_probe(struct platform_device *pdev) | 295 | static int sdo_probe(struct platform_device *pdev) |
296 | { | 296 | { |
297 | struct device *dev = &pdev->dev; | 297 | struct device *dev = &pdev->dev; |
298 | struct sdo_device *sdev; | 298 | struct sdo_device *sdev; |
@@ -419,7 +419,7 @@ fail: | |||
419 | return ret; | 419 | return ret; |
420 | } | 420 | } |
421 | 421 | ||
422 | static int __devexit sdo_remove(struct platform_device *pdev) | 422 | static int sdo_remove(struct platform_device *pdev) |
423 | { | 423 | { |
424 | struct v4l2_subdev *sd = dev_get_drvdata(&pdev->dev); | 424 | struct v4l2_subdev *sd = dev_get_drvdata(&pdev->dev); |
425 | struct sdo_device *sdev = sd_to_sdev(sd); | 425 | struct sdo_device *sdev = sd_to_sdev(sd); |
@@ -437,7 +437,7 @@ static int __devexit sdo_remove(struct platform_device *pdev) | |||
437 | 437 | ||
438 | static struct platform_driver sdo_driver __refdata = { | 438 | static struct platform_driver sdo_driver __refdata = { |
439 | .probe = sdo_probe, | 439 | .probe = sdo_probe, |
440 | .remove = __devexit_p(sdo_remove), | 440 | .remove = sdo_remove, |
441 | .driver = { | 441 | .driver = { |
442 | .name = "s5p-sdo", | 442 | .name = "s5p-sdo", |
443 | .owner = THIS_MODULE, | 443 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/s5p-tv/sii9234_drv.c b/drivers/media/platform/s5p-tv/sii9234_drv.c index 716d4846f8bd..49191aac9634 100644 --- a/drivers/media/platform/s5p-tv/sii9234_drv.c +++ b/drivers/media/platform/s5p-tv/sii9234_drv.c | |||
@@ -315,8 +315,8 @@ static const struct v4l2_subdev_ops sii9234_ops = { | |||
315 | .video = &sii9234_video_ops, | 315 | .video = &sii9234_video_ops, |
316 | }; | 316 | }; |
317 | 317 | ||
318 | static int __devinit sii9234_probe(struct i2c_client *client, | 318 | static int sii9234_probe(struct i2c_client *client, |
319 | const struct i2c_device_id *id) | 319 | const struct i2c_device_id *id) |
320 | { | 320 | { |
321 | struct device *dev = &client->dev; | 321 | struct device *dev = &client->dev; |
322 | struct sii9234_platform_data *pdata = dev->platform_data; | 322 | struct sii9234_platform_data *pdata = dev->platform_data; |
@@ -378,7 +378,7 @@ fail: | |||
378 | return ret; | 378 | return ret; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int __devexit sii9234_remove(struct i2c_client *client) | 381 | static int sii9234_remove(struct i2c_client *client) |
382 | { | 382 | { |
383 | struct device *dev = &client->dev; | 383 | struct device *dev = &client->dev; |
384 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 384 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
@@ -406,7 +406,7 @@ static struct i2c_driver sii9234_driver = { | |||
406 | .pm = &sii9234_pm_ops, | 406 | .pm = &sii9234_pm_ops, |
407 | }, | 407 | }, |
408 | .probe = sii9234_probe, | 408 | .probe = sii9234_probe, |
409 | .remove = __devexit_p(sii9234_remove), | 409 | .remove = sii9234_remove, |
410 | .id_table = sii9234_id, | 410 | .id_table = sii9234_id, |
411 | }; | 411 | }; |
412 | 412 | ||
diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c index a1c87f0ceaab..f3c4571ac01e 100644 --- a/drivers/media/platform/sh_vou.c +++ b/drivers/media/platform/sh_vou.c | |||
@@ -1326,7 +1326,7 @@ static const struct video_device sh_vou_video_template = { | |||
1326 | .vfl_dir = VFL_DIR_TX, | 1326 | .vfl_dir = VFL_DIR_TX, |
1327 | }; | 1327 | }; |
1328 | 1328 | ||
1329 | static int __devinit sh_vou_probe(struct platform_device *pdev) | 1329 | static int sh_vou_probe(struct platform_device *pdev) |
1330 | { | 1330 | { |
1331 | struct sh_vou_pdata *vou_pdata = pdev->dev.platform_data; | 1331 | struct sh_vou_pdata *vou_pdata = pdev->dev.platform_data; |
1332 | struct v4l2_rect *rect; | 1332 | struct v4l2_rect *rect; |
@@ -1461,7 +1461,7 @@ ereqmemreg: | |||
1461 | return ret; | 1461 | return ret; |
1462 | } | 1462 | } |
1463 | 1463 | ||
1464 | static int __devexit sh_vou_remove(struct platform_device *pdev) | 1464 | static int sh_vou_remove(struct platform_device *pdev) |
1465 | { | 1465 | { |
1466 | int irq = platform_get_irq(pdev, 0); | 1466 | int irq = platform_get_irq(pdev, 0); |
1467 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); | 1467 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); |
@@ -1487,7 +1487,7 @@ static int __devexit sh_vou_remove(struct platform_device *pdev) | |||
1487 | } | 1487 | } |
1488 | 1488 | ||
1489 | static struct platform_driver __refdata sh_vou = { | 1489 | static struct platform_driver __refdata sh_vou = { |
1490 | .remove = __devexit_p(sh_vou_remove), | 1490 | .remove = sh_vou_remove, |
1491 | .driver = { | 1491 | .driver = { |
1492 | .name = "sh-vou", | 1492 | .name = "sh-vou", |
1493 | .owner = THIS_MODULE, | 1493 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index 6274a91c25c7..d96c8c7e01d9 100644 --- a/drivers/media/platform/soc_camera/atmel-isi.c +++ b/drivers/media/platform/soc_camera/atmel-isi.c | |||
@@ -897,7 +897,7 @@ static struct soc_camera_host_ops isi_soc_camera_host_ops = { | |||
897 | }; | 897 | }; |
898 | 898 | ||
899 | /* -----------------------------------------------------------------------*/ | 899 | /* -----------------------------------------------------------------------*/ |
900 | static int __devexit atmel_isi_remove(struct platform_device *pdev) | 900 | static int atmel_isi_remove(struct platform_device *pdev) |
901 | { | 901 | { |
902 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 902 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
903 | struct atmel_isi *isi = container_of(soc_host, | 903 | struct atmel_isi *isi = container_of(soc_host, |
@@ -921,7 +921,7 @@ static int __devexit atmel_isi_remove(struct platform_device *pdev) | |||
921 | return 0; | 921 | return 0; |
922 | } | 922 | } |
923 | 923 | ||
924 | static int __devinit atmel_isi_probe(struct platform_device *pdev) | 924 | static int atmel_isi_probe(struct platform_device *pdev) |
925 | { | 925 | { |
926 | unsigned int irq; | 926 | unsigned int irq; |
927 | struct atmel_isi *isi; | 927 | struct atmel_isi *isi; |
@@ -1074,7 +1074,7 @@ err_clk_prepare_pclk: | |||
1074 | 1074 | ||
1075 | static struct platform_driver atmel_isi_driver = { | 1075 | static struct platform_driver atmel_isi_driver = { |
1076 | .probe = atmel_isi_probe, | 1076 | .probe = atmel_isi_probe, |
1077 | .remove = __devexit_p(atmel_isi_remove), | 1077 | .remove = atmel_isi_remove, |
1078 | .driver = { | 1078 | .driver = { |
1079 | .name = "atmel_isi", | 1079 | .name = "atmel_isi", |
1080 | .owner = THIS_MODULE, | 1080 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c index 791cd1d54a76..8bda2c908aba 100644 --- a/drivers/media/platform/soc_camera/mx2_camera.c +++ b/drivers/media/platform/soc_camera/mx2_camera.c | |||
@@ -1692,7 +1692,7 @@ static irqreturn_t mx27_camera_emma_irq(int irq_emma, void *data) | |||
1692 | return IRQ_HANDLED; | 1692 | return IRQ_HANDLED; |
1693 | } | 1693 | } |
1694 | 1694 | ||
1695 | static int __devinit mx27_camera_emma_init(struct platform_device *pdev) | 1695 | static int mx27_camera_emma_init(struct platform_device *pdev) |
1696 | { | 1696 | { |
1697 | struct mx2_camera_dev *pcdev = platform_get_drvdata(pdev); | 1697 | struct mx2_camera_dev *pcdev = platform_get_drvdata(pdev); |
1698 | struct resource *res_emma; | 1698 | struct resource *res_emma; |
@@ -1750,7 +1750,7 @@ out: | |||
1750 | return err; | 1750 | return err; |
1751 | } | 1751 | } |
1752 | 1752 | ||
1753 | static int __devinit mx2_camera_probe(struct platform_device *pdev) | 1753 | static int mx2_camera_probe(struct platform_device *pdev) |
1754 | { | 1754 | { |
1755 | struct mx2_camera_dev *pcdev; | 1755 | struct mx2_camera_dev *pcdev; |
1756 | struct resource *res_csi; | 1756 | struct resource *res_csi; |
@@ -1887,7 +1887,7 @@ exit: | |||
1887 | return err; | 1887 | return err; |
1888 | } | 1888 | } |
1889 | 1889 | ||
1890 | static int __devexit mx2_camera_remove(struct platform_device *pdev) | 1890 | static int mx2_camera_remove(struct platform_device *pdev) |
1891 | { | 1891 | { |
1892 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 1892 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
1893 | struct mx2_camera_dev *pcdev = container_of(soc_host, | 1893 | struct mx2_camera_dev *pcdev = container_of(soc_host, |
@@ -1912,7 +1912,7 @@ static struct platform_driver mx2_camera_driver = { | |||
1912 | .name = MX2_CAM_DRV_NAME, | 1912 | .name = MX2_CAM_DRV_NAME, |
1913 | }, | 1913 | }, |
1914 | .id_table = mx2_camera_devtype, | 1914 | .id_table = mx2_camera_devtype, |
1915 | .remove = __devexit_p(mx2_camera_remove), | 1915 | .remove = mx2_camera_remove, |
1916 | }; | 1916 | }; |
1917 | 1917 | ||
1918 | 1918 | ||
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 06d16de76377..45aef1053a49 100644 --- a/drivers/media/platform/soc_camera/mx3_camera.c +++ b/drivers/media/platform/soc_camera/mx3_camera.c | |||
@@ -1143,7 +1143,7 @@ static struct soc_camera_host_ops mx3_soc_camera_host_ops = { | |||
1143 | .set_bus_param = mx3_camera_set_bus_param, | 1143 | .set_bus_param = mx3_camera_set_bus_param, |
1144 | }; | 1144 | }; |
1145 | 1145 | ||
1146 | static int __devinit mx3_camera_probe(struct platform_device *pdev) | 1146 | static int mx3_camera_probe(struct platform_device *pdev) |
1147 | { | 1147 | { |
1148 | struct mx3_camera_dev *mx3_cam; | 1148 | struct mx3_camera_dev *mx3_cam; |
1149 | struct resource *res; | 1149 | struct resource *res; |
@@ -1246,7 +1246,7 @@ egetres: | |||
1246 | return err; | 1246 | return err; |
1247 | } | 1247 | } |
1248 | 1248 | ||
1249 | static int __devexit mx3_camera_remove(struct platform_device *pdev) | 1249 | static int mx3_camera_remove(struct platform_device *pdev) |
1250 | { | 1250 | { |
1251 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 1251 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
1252 | struct mx3_camera_dev *mx3_cam = container_of(soc_host, | 1252 | struct mx3_camera_dev *mx3_cam = container_of(soc_host, |
@@ -1279,7 +1279,7 @@ static struct platform_driver mx3_camera_driver = { | |||
1279 | .name = MX3_CAM_DRV_NAME, | 1279 | .name = MX3_CAM_DRV_NAME, |
1280 | }, | 1280 | }, |
1281 | .probe = mx3_camera_probe, | 1281 | .probe = mx3_camera_probe, |
1282 | .remove = __devexit_p(mx3_camera_remove), | 1282 | .remove = mx3_camera_remove, |
1283 | }; | 1283 | }; |
1284 | 1284 | ||
1285 | module_platform_driver(mx3_camera_driver); | 1285 | module_platform_driver(mx3_camera_driver); |
diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_camera/pxa_camera.c index 3434ffe79c6e..523330d00dee 100644 --- a/drivers/media/platform/soc_camera/pxa_camera.c +++ b/drivers/media/platform/soc_camera/pxa_camera.c | |||
@@ -1651,7 +1651,7 @@ static struct soc_camera_host_ops pxa_soc_camera_host_ops = { | |||
1651 | .set_bus_param = pxa_camera_set_bus_param, | 1651 | .set_bus_param = pxa_camera_set_bus_param, |
1652 | }; | 1652 | }; |
1653 | 1653 | ||
1654 | static int __devinit pxa_camera_probe(struct platform_device *pdev) | 1654 | static int pxa_camera_probe(struct platform_device *pdev) |
1655 | { | 1655 | { |
1656 | struct pxa_camera_dev *pcdev; | 1656 | struct pxa_camera_dev *pcdev; |
1657 | struct resource *res; | 1657 | struct resource *res; |
@@ -1801,7 +1801,7 @@ exit: | |||
1801 | return err; | 1801 | return err; |
1802 | } | 1802 | } |
1803 | 1803 | ||
1804 | static int __devexit pxa_camera_remove(struct platform_device *pdev) | 1804 | static int pxa_camera_remove(struct platform_device *pdev) |
1805 | { | 1805 | { |
1806 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 1806 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
1807 | struct pxa_camera_dev *pcdev = container_of(soc_host, | 1807 | struct pxa_camera_dev *pcdev = container_of(soc_host, |
@@ -1840,7 +1840,7 @@ static struct platform_driver pxa_camera_driver = { | |||
1840 | .pm = &pxa_camera_pm, | 1840 | .pm = &pxa_camera_pm, |
1841 | }, | 1841 | }, |
1842 | .probe = pxa_camera_probe, | 1842 | .probe = pxa_camera_probe, |
1843 | .remove = __devexit_p(pxa_camera_remove), | 1843 | .remove = pxa_camera_remove, |
1844 | }; | 1844 | }; |
1845 | 1845 | ||
1846 | module_platform_driver(pxa_camera_driver); | 1846 | module_platform_driver(pxa_camera_driver); |
diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c index 2d8861c0e8f2..ebbc126e71a6 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | |||
@@ -2071,7 +2071,7 @@ static int bus_notify(struct notifier_block *nb, | |||
2071 | return NOTIFY_DONE; | 2071 | return NOTIFY_DONE; |
2072 | } | 2072 | } |
2073 | 2073 | ||
2074 | static int __devinit sh_mobile_ceu_probe(struct platform_device *pdev) | 2074 | static int sh_mobile_ceu_probe(struct platform_device *pdev) |
2075 | { | 2075 | { |
2076 | struct sh_mobile_ceu_dev *pcdev; | 2076 | struct sh_mobile_ceu_dev *pcdev; |
2077 | struct resource *res; | 2077 | struct resource *res; |
@@ -2258,7 +2258,7 @@ exit: | |||
2258 | return err; | 2258 | return err; |
2259 | } | 2259 | } |
2260 | 2260 | ||
2261 | static int __devexit sh_mobile_ceu_remove(struct platform_device *pdev) | 2261 | static int sh_mobile_ceu_remove(struct platform_device *pdev) |
2262 | { | 2262 | { |
2263 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); | 2263 | struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); |
2264 | struct sh_mobile_ceu_dev *pcdev = container_of(soc_host, | 2264 | struct sh_mobile_ceu_dev *pcdev = container_of(soc_host, |
@@ -2307,7 +2307,7 @@ static struct platform_driver sh_mobile_ceu_driver = { | |||
2307 | .pm = &sh_mobile_ceu_dev_pm_ops, | 2307 | .pm = &sh_mobile_ceu_dev_pm_ops, |
2308 | }, | 2308 | }, |
2309 | .probe = sh_mobile_ceu_probe, | 2309 | .probe = sh_mobile_ceu_probe, |
2310 | .remove = __devexit_p(sh_mobile_ceu_remove), | 2310 | .remove = sh_mobile_ceu_remove, |
2311 | }; | 2311 | }; |
2312 | 2312 | ||
2313 | static int __init sh_mobile_ceu_init(void) | 2313 | static int __init sh_mobile_ceu_init(void) |
diff --git a/drivers/media/platform/soc_camera/sh_mobile_csi2.c b/drivers/media/platform/soc_camera/sh_mobile_csi2.c index 05286500b4d4..a17aba9a0104 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_csi2.c +++ b/drivers/media/platform/soc_camera/sh_mobile_csi2.c | |||
@@ -294,7 +294,7 @@ static struct v4l2_subdev_ops sh_csi2_subdev_ops = { | |||
294 | .video = &sh_csi2_subdev_video_ops, | 294 | .video = &sh_csi2_subdev_video_ops, |
295 | }; | 295 | }; |
296 | 296 | ||
297 | static __devinit int sh_csi2_probe(struct platform_device *pdev) | 297 | static int sh_csi2_probe(struct platform_device *pdev) |
298 | { | 298 | { |
299 | struct resource *res; | 299 | struct resource *res; |
300 | unsigned int irq; | 300 | unsigned int irq; |
@@ -366,7 +366,7 @@ ereqreg: | |||
366 | return ret; | 366 | return ret; |
367 | } | 367 | } |
368 | 368 | ||
369 | static __devexit int sh_csi2_remove(struct platform_device *pdev) | 369 | static int sh_csi2_remove(struct platform_device *pdev) |
370 | { | 370 | { |
371 | struct sh_csi2 *priv = platform_get_drvdata(pdev); | 371 | struct sh_csi2 *priv = platform_get_drvdata(pdev); |
372 | struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 372 | struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
@@ -382,7 +382,7 @@ static __devexit int sh_csi2_remove(struct platform_device *pdev) | |||
382 | } | 382 | } |
383 | 383 | ||
384 | static struct platform_driver __refdata sh_csi2_pdrv = { | 384 | static struct platform_driver __refdata sh_csi2_pdrv = { |
385 | .remove = __devexit_p(sh_csi2_remove), | 385 | .remove = sh_csi2_remove, |
386 | .probe = sh_csi2_probe, | 386 | .probe = sh_csi2_probe, |
387 | .driver = { | 387 | .driver = { |
388 | .name = "sh-mobile-csi2", | 388 | .name = "sh-mobile-csi2", |
diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c index 4e3735679f17..2ec90eae6ba0 100644 --- a/drivers/media/platform/soc_camera/soc_camera.c +++ b/drivers/media/platform/soc_camera/soc_camera.c | |||
@@ -1530,7 +1530,7 @@ static int soc_camera_video_start(struct soc_camera_device *icd) | |||
1530 | return 0; | 1530 | return 0; |
1531 | } | 1531 | } |
1532 | 1532 | ||
1533 | static int __devinit soc_camera_pdrv_probe(struct platform_device *pdev) | 1533 | static int soc_camera_pdrv_probe(struct platform_device *pdev) |
1534 | { | 1534 | { |
1535 | struct soc_camera_link *icl = pdev->dev.platform_data; | 1535 | struct soc_camera_link *icl = pdev->dev.platform_data; |
1536 | struct soc_camera_device *icd; | 1536 | struct soc_camera_device *icd; |
@@ -1558,7 +1558,7 @@ static int __devinit soc_camera_pdrv_probe(struct platform_device *pdev) | |||
1558 | * hot-pluggable. Now we know, that all our users - hosts and devices have | 1558 | * hot-pluggable. Now we know, that all our users - hosts and devices have |
1559 | * been unloaded already | 1559 | * been unloaded already |
1560 | */ | 1560 | */ |
1561 | static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev) | 1561 | static int soc_camera_pdrv_remove(struct platform_device *pdev) |
1562 | { | 1562 | { |
1563 | struct soc_camera_device *icd = platform_get_drvdata(pdev); | 1563 | struct soc_camera_device *icd = platform_get_drvdata(pdev); |
1564 | 1564 | ||
@@ -1572,7 +1572,7 @@ static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev) | |||
1572 | 1572 | ||
1573 | static struct platform_driver __refdata soc_camera_pdrv = { | 1573 | static struct platform_driver __refdata soc_camera_pdrv = { |
1574 | .probe = soc_camera_pdrv_probe, | 1574 | .probe = soc_camera_pdrv_probe, |
1575 | .remove = __devexit_p(soc_camera_pdrv_remove), | 1575 | .remove = soc_camera_pdrv_remove, |
1576 | .driver = { | 1576 | .driver = { |
1577 | .name = "soc-camera-pdrv", | 1577 | .name = "soc-camera-pdrv", |
1578 | .owner = THIS_MODULE, | 1578 | .owner = THIS_MODULE, |
diff --git a/drivers/media/platform/timblogiw.c b/drivers/media/platform/timblogiw.c index 02194c056b00..d854d08a6c7f 100644 --- a/drivers/media/platform/timblogiw.c +++ b/drivers/media/platform/timblogiw.c | |||
@@ -745,7 +745,7 @@ static int timblogiw_mmap(struct file *file, struct vm_area_struct *vma) | |||
745 | 745 | ||
746 | /* Platform device functions */ | 746 | /* Platform device functions */ |
747 | 747 | ||
748 | static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = { | 748 | static struct v4l2_ioctl_ops timblogiw_ioctl_ops = { |
749 | .vidioc_querycap = timblogiw_querycap, | 749 | .vidioc_querycap = timblogiw_querycap, |
750 | .vidioc_enum_fmt_vid_cap = timblogiw_enum_fmt, | 750 | .vidioc_enum_fmt_vid_cap = timblogiw_enum_fmt, |
751 | .vidioc_g_fmt_vid_cap = timblogiw_g_fmt, | 751 | .vidioc_g_fmt_vid_cap = timblogiw_g_fmt, |
@@ -767,7 +767,7 @@ static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = { | |||
767 | .vidioc_enum_framesizes = timblogiw_enum_framesizes, | 767 | .vidioc_enum_framesizes = timblogiw_enum_framesizes, |
768 | }; | 768 | }; |
769 | 769 | ||
770 | static __devinitconst struct v4l2_file_operations timblogiw_fops = { | 770 | static struct v4l2_file_operations timblogiw_fops = { |
771 | .owner = THIS_MODULE, | 771 | .owner = THIS_MODULE, |
772 | .open = timblogiw_open, | 772 | .open = timblogiw_open, |
773 | .release = timblogiw_close, | 773 | .release = timblogiw_close, |
@@ -777,7 +777,7 @@ static __devinitconst struct v4l2_file_operations timblogiw_fops = { | |||
777 | .poll = timblogiw_poll, | 777 | .poll = timblogiw_poll, |
778 | }; | 778 | }; |
779 | 779 | ||
780 | static __devinitconst struct video_device timblogiw_template = { | 780 | static struct video_device timblogiw_template = { |
781 | .name = TIMBLOGIWIN_NAME, | 781 | .name = TIMBLOGIWIN_NAME, |
782 | .fops = &timblogiw_fops, | 782 | .fops = &timblogiw_fops, |
783 | .ioctl_ops = &timblogiw_ioctl_ops, | 783 | .ioctl_ops = &timblogiw_ioctl_ops, |
@@ -786,7 +786,7 @@ static __devinitconst struct video_device timblogiw_template = { | |||
786 | .tvnorms = V4L2_STD_PAL | V4L2_STD_NTSC | 786 | .tvnorms = V4L2_STD_PAL | V4L2_STD_NTSC |
787 | }; | 787 | }; |
788 | 788 | ||
789 | static int __devinit timblogiw_probe(struct platform_device *pdev) | 789 | static int timblogiw_probe(struct platform_device *pdev) |
790 | { | 790 | { |
791 | int err; | 791 | int err; |
792 | struct timblogiw *lw = NULL; | 792 | struct timblogiw *lw = NULL; |
@@ -848,7 +848,7 @@ err: | |||
848 | return err; | 848 | return err; |
849 | } | 849 | } |
850 | 850 | ||
851 | static int __devexit timblogiw_remove(struct platform_device *pdev) | 851 | static int timblogiw_remove(struct platform_device *pdev) |
852 | { | 852 | { |
853 | struct timblogiw *lw = platform_get_drvdata(pdev); | 853 | struct timblogiw *lw = platform_get_drvdata(pdev); |
854 | 854 | ||
@@ -869,7 +869,7 @@ static struct platform_driver timblogiw_platform_driver = { | |||
869 | .owner = THIS_MODULE, | 869 | .owner = THIS_MODULE, |
870 | }, | 870 | }, |
871 | .probe = timblogiw_probe, | 871 | .probe = timblogiw_probe, |
872 | .remove = __devexit_p(timblogiw_remove), | 872 | .remove = timblogiw_remove, |
873 | }; | 873 | }; |
874 | 874 | ||
875 | module_platform_driver(timblogiw_platform_driver); | 875 | module_platform_driver(timblogiw_platform_driver); |
diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index eb404c2ce270..63e8c3461239 100644 --- a/drivers/media/platform/via-camera.c +++ b/drivers/media/platform/via-camera.c | |||
@@ -1324,7 +1324,7 @@ static struct video_device viacam_v4l_template = { | |||
1324 | #define VIACAM_SERIAL_CREG 0x46 | 1324 | #define VIACAM_SERIAL_CREG 0x46 |
1325 | #define VIACAM_SERIAL_BIT 0x40 | 1325 | #define VIACAM_SERIAL_BIT 0x40 |
1326 | 1326 | ||
1327 | static __devinit bool viacam_serial_is_enabled(void) | 1327 | static bool viacam_serial_is_enabled(void) |
1328 | { | 1328 | { |
1329 | struct pci_bus *pbus = pci_find_bus(0, 0); | 1329 | struct pci_bus *pbus = pci_find_bus(0, 0); |
1330 | u8 cbyte; | 1330 | u8 cbyte; |
@@ -1353,7 +1353,7 @@ static struct ov7670_config sensor_cfg = { | |||
1353 | .clock_speed = 90, | 1353 | .clock_speed = 90, |
1354 | }; | 1354 | }; |
1355 | 1355 | ||
1356 | static __devinit int viacam_probe(struct platform_device *pdev) | 1356 | static int viacam_probe(struct platform_device *pdev) |
1357 | { | 1357 | { |
1358 | int ret; | 1358 | int ret; |
1359 | struct i2c_adapter *sensor_adapter; | 1359 | struct i2c_adapter *sensor_adapter; |
@@ -1490,7 +1490,7 @@ out_unregister: | |||
1490 | return ret; | 1490 | return ret; |
1491 | } | 1491 | } |
1492 | 1492 | ||
1493 | static __devexit int viacam_remove(struct platform_device *pdev) | 1493 | static int viacam_remove(struct platform_device *pdev) |
1494 | { | 1494 | { |
1495 | struct via_camera *cam = via_cam_info; | 1495 | struct via_camera *cam = via_cam_info; |
1496 | struct viafb_dev *viadev = pdev->dev.platform_data; | 1496 | struct viafb_dev *viadev = pdev->dev.platform_data; |