aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-01-24 15:49:18 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-24 15:49:18 -0500
commita32f7d1ad3744914273c6907204c2ab3b5d496a0 (patch)
tree1c5ae321ee85665707177547c07810ff7e09e1ab /drivers/media/platform
parent6b9e50c463efc5c361496ae6a895cc966ff8025b (diff)
parent68d6f84ba0c47e658beff3a4bf0c43acee4b4690 (diff)
Merge branch 'v4l_for_linus' into staging/for_v3.9
* v4l_for_linus: (464 commits) [media] uvcvideo: Set error_idx properly for S_EXT_CTRLS failures [media] uvcvideo: Cleanup leftovers of partial revert [media] uvcvideo: Return -EACCES when trying to set a read-only control Linux 3.8-rc3 mm: reinstante dropped pmd_trans_splitting() check cred: Remove tgcred pointer from struct cred drm/ttm: fix fence locking in ttm_buffer_object_transfer ARM: clps711x: Fix bad merge of clockevents setup ARM: highbank: save and restore L2 cache and GIC on suspend ARM: highbank: add a power request clear ARM: highbank: fix secondary boot and hotplug ARM: highbank: fix typos with hignbank in power request functions ARM: dts: fix highbank cpu mpidr values ARM: dts: add device_type prop to cpu nodes on Calxeda platforms drm/prime: drop reference on imported dma-buf come from gem xen/netfront: improve truesize tracking ARM: mx5: Fix MX53 flexcan2 clock ARM: OMAP2+: am33xx-hwmod: Fix wrongly terminated am33xx_usbss_mpu_irqs array sctp: fix Kconfig bug in default cookie hmac selection EDAC: Cleanup device deregistering path ... Conflicts: drivers/media/pci/dm1105/dm1105.c drivers/media/platform/soc_camera/mx2_camera.c
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/blackfin/bfin_capture.c6
-rw-r--r--drivers/media/platform/coda.c4
-rw-r--r--drivers/media/platform/davinci/dm355_ccdc.c4
-rw-r--r--drivers/media/platform/davinci/dm644x_ccdc.c4
-rw-r--r--drivers/media/platform/davinci/isif.c4
-rw-r--r--drivers/media/platform/davinci/vpbe.c2
-rw-r--r--drivers/media/platform/davinci/vpbe_display.c15
-rw-r--r--drivers/media/platform/davinci/vpfe_capture.c6
-rw-r--r--drivers/media/platform/davinci/vpif.c6
-rw-r--r--drivers/media/platform/davinci/vpss.c6
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-core.c4
-rw-r--r--drivers/media/platform/fsl-viu.c6
-rw-r--r--drivers/media/platform/omap24xxcam.c2
-rw-r--r--drivers/media/platform/omap3isp/isp.c8
-rw-r--r--drivers/media/platform/omap3isp/ispvideo.c3
-rw-r--r--drivers/media/platform/s3c-camif/camif-core.c4
-rw-r--r--drivers/media/platform/s5p-fimc/fimc-core.c4
-rw-r--r--drivers/media/platform/s5p-fimc/fimc-lite.c6
-rw-r--r--drivers/media/platform/s5p-fimc/fimc-mdevice.c6
-rw-r--r--drivers/media/platform/s5p-fimc/mipi-csis.c6
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c92
-rw-r--r--drivers/media/platform/s5p-tv/hdmi_drv.c6
-rw-r--r--drivers/media/platform/s5p-tv/hdmiphy_drv.c8
-rw-r--r--drivers/media/platform/s5p-tv/mixer.h2
-rw-r--r--drivers/media/platform/s5p-tv/mixer_drv.c18
-rw-r--r--drivers/media/platform/s5p-tv/mixer_video.c4
-rw-r--r--drivers/media/platform/s5p-tv/sdo_drv.c6
-rw-r--r--drivers/media/platform/s5p-tv/sii9234_drv.c8
-rw-r--r--drivers/media/platform/sh_vou.c6
-rw-r--r--drivers/media/platform/soc_camera/atmel-isi.c6
-rw-r--r--drivers/media/platform/soc_camera/mx2_camera.c8
-rw-r--r--drivers/media/platform/soc_camera/mx3_camera.c6
-rw-r--r--drivers/media/platform/soc_camera/pxa_camera.c6
-rw-r--r--drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c6
-rw-r--r--drivers/media/platform/soc_camera/sh_mobile_csi2.c6
-rw-r--r--drivers/media/platform/soc_camera/soc_camera.c6
-rw-r--r--drivers/media/platform/timblogiw.c12
-rw-r--r--drivers/media/platform/via-camera.c6
38 files changed, 150 insertions, 168 deletions
diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c
index aa9f846a667e..12e0faf53403 100644
--- a/drivers/media/platform/blackfin/bfin_capture.c
+++ b/drivers/media/platform/blackfin/bfin_capture.c
@@ -946,7 +946,7 @@ static struct v4l2_file_operations bcap_fops = {
946 .poll = bcap_poll 946 .poll = bcap_poll
947}; 947};
948 948
949static int __devinit bcap_probe(struct platform_device *pdev) 949static int bcap_probe(struct platform_device *pdev)
950{ 950{
951 struct bcap_device *bcap_dev; 951 struct bcap_device *bcap_dev;
952 struct video_device *vfd; 952 struct video_device *vfd;
@@ -1144,7 +1144,7 @@ err_free_dev:
1144 return ret; 1144 return ret;
1145} 1145}
1146 1146
1147static int __devexit bcap_remove(struct platform_device *pdev) 1147static int bcap_remove(struct platform_device *pdev)
1148{ 1148{
1149 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); 1149 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev);
1150 struct bcap_device *bcap_dev = container_of(v4l2_dev, 1150 struct bcap_device *bcap_dev = container_of(v4l2_dev,
@@ -1166,7 +1166,7 @@ static struct platform_driver bcap_driver = {
1166 .owner = THIS_MODULE, 1166 .owner = THIS_MODULE,
1167 }, 1167 },
1168 .probe = bcap_probe, 1168 .probe = bcap_probe,
1169 .remove = __devexit_p(bcap_remove), 1169 .remove = bcap_remove,
1170}; 1170};
1171module_platform_driver(bcap_driver); 1171module_platform_driver(bcap_driver);
1172 1172
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index 2721f839852f..8d20b644bf2c 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -1921,7 +1921,7 @@ static const struct of_device_id coda_dt_ids[] = {
1921MODULE_DEVICE_TABLE(of, coda_dt_ids); 1921MODULE_DEVICE_TABLE(of, coda_dt_ids);
1922#endif 1922#endif
1923 1923
1924static int __devinit coda_probe(struct platform_device *pdev) 1924static int coda_probe(struct platform_device *pdev)
1925{ 1925{
1926 const struct of_device_id *of_id = 1926 const struct of_device_id *of_id =
1927 of_match_device(of_match_ptr(coda_dt_ids), &pdev->dev); 1927 of_match_device(of_match_ptr(coda_dt_ids), &pdev->dev);
@@ -2063,7 +2063,7 @@ static int coda_remove(struct platform_device *pdev)
2063 2063
2064static struct platform_driver coda_driver = { 2064static struct platform_driver coda_driver = {
2065 .probe = coda_probe, 2065 .probe = coda_probe,
2066 .remove = __devexit_p(coda_remove), 2066 .remove = coda_remove,
2067 .driver = { 2067 .driver = {
2068 .name = CODA_NAME, 2068 .name = CODA_NAME,
2069 .owner = THIS_MODULE, 2069 .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
968static int __devinit dm355_ccdc_probe(struct platform_device *pdev) 968static 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
960static int __devinit dm644x_ccdc_probe(struct platform_device *pdev) 960static 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
1035static int __devinit isif_probe(struct platform_device *pdev) 1035static 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 fe2b9ce0bce8..4d9469733fd9 100644
--- a/drivers/media/platform/davinci/vpbe.c
+++ b/drivers/media/platform/davinci/vpbe.c
@@ -805,7 +805,7 @@ static struct vpbe_device_ops vpbe_dev_ops = {
805 .set_mode = vpbe_set_mode, 805 .set_mode = vpbe_set_mode,
806}; 806};
807 807
808static __devinit int vpbe_probe(struct platform_device *pdev) 808static int vpbe_probe(struct platform_device *pdev)
809{ 809{
810 struct vpbe_device *vpbe_dev; 810 struct vpbe_device *vpbe_dev;
811 struct vpbe_config *cfg; 811 struct vpbe_config *cfg;
diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c
index d078738b35d6..5e6b0cab514b 100644
--- a/drivers/media/platform/davinci/vpbe_display.c
+++ b/drivers/media/platform/davinci/vpbe_display.c
@@ -1661,8 +1661,8 @@ static int vpbe_device_get(struct device *dev, void *data)
1661 return 0; 1661 return 0;
1662} 1662}
1663 1663
1664static __devinit int init_vpbe_layer(int i, struct vpbe_display *disp_dev, 1664static int init_vpbe_layer(int i, struct vpbe_display *disp_dev,
1665 struct platform_device *pdev) 1665 struct platform_device *pdev)
1666{ 1666{
1667 struct vpbe_layer *vpbe_display_layer = NULL; 1667 struct vpbe_layer *vpbe_display_layer = NULL;
1668 struct video_device *vbd = NULL; 1668 struct video_device *vbd = NULL;
@@ -1717,9 +1717,10 @@ static __devinit int init_vpbe_layer(int i, struct vpbe_display *disp_dev,
1717 return 0; 1717 return 0;
1718} 1718}
1719 1719
1720static __devinit int register_device(struct vpbe_layer *vpbe_display_layer, 1720static int register_device(struct vpbe_layer *vpbe_display_layer,
1721 struct vpbe_display *disp_dev, 1721 struct vpbe_display *disp_dev,
1722 struct platform_device *pdev) { 1722 struct platform_device *pdev)
1723{
1723 int err; 1724 int err;
1724 1725
1725 v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, 1726 v4l2_info(&disp_dev->vpbe_dev->v4l2_dev,
@@ -1751,7 +1752,7 @@ static __devinit int register_device(struct vpbe_layer *vpbe_display_layer,
1751 * This function creates device entries by register itself to the V4L2 driver 1752 * This function creates device entries by register itself to the V4L2 driver
1752 * and initializes fields of each layer objects 1753 * and initializes fields of each layer objects
1753 */ 1754 */
1754static __devinit int vpbe_display_probe(struct platform_device *pdev) 1755static int vpbe_display_probe(struct platform_device *pdev)
1755{ 1756{
1756 struct vpbe_layer *vpbe_display_layer; 1757 struct vpbe_layer *vpbe_display_layer;
1757 struct vpbe_display *disp_dev; 1758 struct vpbe_display *disp_dev;
@@ -1885,7 +1886,7 @@ static struct platform_driver vpbe_display_driver = {
1885 .bus = &platform_bus_type, 1886 .bus = &platform_bus_type,
1886 }, 1887 },
1887 .probe = vpbe_display_probe, 1888 .probe = vpbe_display_probe,
1888 .remove = __devexit_p(vpbe_display_remove), 1889 .remove = vpbe_display_remove,
1889}; 1890};
1890 1891
1891module_platform_driver(vpbe_display_driver); 1892module_platform_driver(vpbe_display_driver);
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c
index 65f4264bd5b4..28d019da4c01 100644
--- a/drivers/media/platform/davinci/vpfe_capture.c
+++ b/drivers/media/platform/davinci/vpfe_capture.c
@@ -1828,7 +1828,7 @@ static struct vpfe_device *vpfe_initialize(void)
1828 * itself to the V4L2 driver and initializes fields of each 1828 * itself to the V4L2 driver and initializes fields of each
1829 * device objects 1829 * device objects
1830 */ 1830 */
1831static __devinit int vpfe_probe(struct platform_device *pdev) 1831static int vpfe_probe(struct platform_device *pdev)
1832{ 1832{
1833 struct vpfe_subdev_info *sdinfo; 1833 struct vpfe_subdev_info *sdinfo;
1834 struct vpfe_config *vpfe_cfg; 1834 struct vpfe_config *vpfe_cfg;
@@ -2035,7 +2035,7 @@ probe_free_dev_mem:
2035/* 2035/*
2036 * vpfe_remove : It un-register device from V4L2 driver 2036 * vpfe_remove : It un-register device from V4L2 driver
2037 */ 2037 */
2038static int __devexit vpfe_remove(struct platform_device *pdev) 2038static int vpfe_remove(struct platform_device *pdev)
2039{ 2039{
2040 struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); 2040 struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev);
2041 2041
@@ -2072,7 +2072,7 @@ static struct platform_driver vpfe_driver = {
2072 .pm = &vpfe_dev_pm_ops, 2072 .pm = &vpfe_dev_pm_ops,
2073 }, 2073 },
2074 .probe = vpfe_probe, 2074 .probe = vpfe_probe,
2075 .remove = __devexit_p(vpfe_remove), 2075 .remove = vpfe_remove,
2076}; 2076};
2077 2077
2078module_platform_driver(vpfe_driver); 2078module_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}
420EXPORT_SYMBOL(vpif_channel_getfid); 420EXPORT_SYMBOL(vpif_channel_getfid);
421 421
422static int __devinit vpif_probe(struct platform_device *pdev) 422static 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
460static int __devexit vpif_remove(struct platform_device *pdev) 460static 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 d945f94053a8..494d32231fb5 100644
--- a/drivers/media/platform/davinci/vpss.c
+++ b/drivers/media/platform/davinci/vpss.c
@@ -406,7 +406,7 @@ void dm365_vpss_set_pg_frame_size(struct vpss_pg_frame_size frame_size)
406} 406}
407EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size); 407EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size);
408 408
409static int __devinit vpss_probe(struct platform_device *pdev) 409static int vpss_probe(struct platform_device *pdev)
410{ 410{
411 struct resource *r1, *r2; 411 struct resource *r1, *r2;
412 char *platform_name; 412 char *platform_name;
@@ -504,7 +504,7 @@ fail1:
504 return status; 504 return status;
505} 505}
506 506
507static int __devexit vpss_remove(struct platform_device *pdev) 507static int vpss_remove(struct platform_device *pdev)
508{ 508{
509 struct resource *res; 509 struct resource *res;
510 510
@@ -524,7 +524,7 @@ static struct platform_driver vpss_driver = {
524 .name = "vpss", 524 .name = "vpss",
525 .owner = THIS_MODULE, 525 .owner = THIS_MODULE,
526 }, 526 },
527 .remove = __devexit_p(vpss_remove), 527 .remove = vpss_remove,
528 .probe = vpss_probe, 528 .probe = vpss_probe,
529}; 529};
530 530
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index ae885c7ebc41..99b841d2f8fc 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -1152,7 +1152,7 @@ err_clk:
1152 return ret; 1152 return ret;
1153} 1153}
1154 1154
1155static int __devexit gsc_remove(struct platform_device *pdev) 1155static int gsc_remove(struct platform_device *pdev)
1156{ 1156{
1157 struct gsc_dev *gsc = platform_get_drvdata(pdev); 1157 struct gsc_dev *gsc = platform_get_drvdata(pdev);
1158 1158
@@ -1239,7 +1239,7 @@ static const struct dev_pm_ops gsc_pm_ops = {
1239 1239
1240static struct platform_driver gsc_driver = { 1240static struct platform_driver gsc_driver = {
1241 .probe = gsc_probe, 1241 .probe = gsc_probe,
1242 .remove = __devexit_p(gsc_remove), 1242 .remove = gsc_remove,
1243 .id_table = gsc_driver_ids, 1243 .id_table = gsc_driver_ids,
1244 .driver = { 1244 .driver = {
1245 .name = GSC_MODULE_NAME, 1245 .name = GSC_MODULE_NAME,
diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c
index d464509d0f0e..5f7db3f1f6f5 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
1481static int __devinit viu_of_probe(struct platform_device *op) 1481static 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
1618static int __devexit viu_of_remove(struct platform_device *op) 1618static 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
1669static struct platform_driver viu_of_platform_driver = { 1669static 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 eda3274abf8e..debb44ceb185 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
1739static int __devinit omap24xxcam_probe(struct platform_device *pdev) 1739static 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 a9f6de5b69d8..e4aaee91201d 100644
--- a/drivers/media/platform/omap3isp/isp.c
+++ b/drivers/media/platform/omap3isp/isp.c
@@ -71,8 +71,6 @@
71#include <media/v4l2-common.h> 71#include <media/v4l2-common.h>
72#include <media/v4l2-device.h> 72#include <media/v4l2-device.h>
73 73
74#include <plat/cpu.h>
75
76#include "isp.h" 74#include "isp.h"
77#include "ispreg.h" 75#include "ispreg.h"
78#include "ispccdc.h" 76#include "ispccdc.h"
@@ -1992,7 +1990,7 @@ error_csiphy:
1992 * 1990 *
1993 * Always returns 0. 1991 * Always returns 0.
1994 */ 1992 */
1995static int __devexit isp_remove(struct platform_device *pdev) 1993static int isp_remove(struct platform_device *pdev)
1996{ 1994{
1997 struct isp_device *isp = platform_get_drvdata(pdev); 1995 struct isp_device *isp = platform_get_drvdata(pdev);
1998 int i; 1996 int i;
@@ -2073,7 +2071,7 @@ static int isp_map_mem_resource(struct platform_device *pdev,
2073 * -EINVAL if couldn't install ISR, 2071 * -EINVAL if couldn't install ISR,
2074 * or clk_get return error value. 2072 * or clk_get return error value.
2075 */ 2073 */
2076static int __devinit isp_probe(struct platform_device *pdev) 2074static int isp_probe(struct platform_device *pdev)
2077{ 2075{
2078 struct isp_platform_data *pdata = pdev->dev.platform_data; 2076 struct isp_platform_data *pdata = pdev->dev.platform_data;
2079 struct isp_device *isp; 2077 struct isp_device *isp;
@@ -2252,7 +2250,7 @@ MODULE_DEVICE_TABLE(platform, omap3isp_id_table);
2252 2250
2253static struct platform_driver omap3isp_driver = { 2251static struct platform_driver omap3isp_driver = {
2254 .probe = isp_probe, 2252 .probe = isp_probe,
2255 .remove = __devexit_p(isp_remove), 2253 .remove = isp_remove,
2256 .id_table = omap3isp_id_table, 2254 .id_table = omap3isp_id_table,
2257 .driver = { 2255 .driver = {
2258 .owner = THIS_MODULE, 2256 .owner = THIS_MODULE,
diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c
index e0d73a642186..8dac17511e61 100644
--- a/drivers/media/platform/omap3isp/ispvideo.c
+++ b/drivers/media/platform/omap3isp/ispvideo.c
@@ -35,9 +35,6 @@
35#include <linux/vmalloc.h> 35#include <linux/vmalloc.h>
36#include <media/v4l2-dev.h> 36#include <media/v4l2-dev.h>
37#include <media/v4l2-ioctl.h> 37#include <media/v4l2-ioctl.h>
38#include <plat/iommu.h>
39#include <plat/iovmm.h>
40#include <plat/omap-pm.h>
41 38
42#include "ispvideo.h" 39#include "ispvideo.h"
43#include "isp.h" 40#include "isp.h"
diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c
index 37c9b6faae26..8f0ca02c29a9 100644
--- a/drivers/media/platform/s3c-camif/camif-core.c
+++ b/drivers/media/platform/s3c-camif/camif-core.c
@@ -532,7 +532,7 @@ err_sd:
532 return ret; 532 return ret;
533} 533}
534 534
535static int __devexit s3c_camif_remove(struct platform_device *pdev) 535static int s3c_camif_remove(struct platform_device *pdev)
536{ 536{
537 struct camif_dev *camif = platform_get_drvdata(pdev); 537 struct camif_dev *camif = platform_get_drvdata(pdev);
538 struct s3c_camif_plat_data *pdata = &camif->pdata; 538 struct s3c_camif_plat_data *pdata = &camif->pdata;
@@ -646,7 +646,7 @@ static const struct dev_pm_ops s3c_camif_pm_ops = {
646 646
647static struct platform_driver s3c_camif_driver = { 647static struct platform_driver s3c_camif_driver = {
648 .probe = s3c_camif_probe, 648 .probe = s3c_camif_probe,
649 .remove = __devexit_p(s3c_camif_remove), 649 .remove = s3c_camif_remove,
650 .id_table = s3c_camif_driver_ids, 650 .id_table = s3c_camif_driver_ids,
651 .driver = { 651 .driver = {
652 .name = S3C_CAMIF_DRIVER_NAME, 652 .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 2a1558a37a41..2e86f44edd23 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
1038static int __devexit fimc_remove(struct platform_device *pdev) 1038static 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
@@ -1278,7 +1278,7 @@ static const struct dev_pm_ops fimc_pm_ops = {
1278 1278
1279static struct platform_driver fimc_driver = { 1279static struct platform_driver fimc_driver = {
1280 .probe = fimc_probe, 1280 .probe = fimc_probe,
1281 .remove = __devexit_p(fimc_remove), 1281 .remove = fimc_remove,
1282 .id_table = fimc_driver_ids, 1282 .id_table = fimc_driver_ids,
1283 .driver = { 1283 .driver = {
1284 .name = FIMC_MODULE_NAME, 1284 .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 ef31c3919fe9..c67dd2ebcff5 100644
--- a/drivers/media/platform/s5p-fimc/fimc-lite.c
+++ b/drivers/media/platform/s5p-fimc/fimc-lite.c
@@ -1490,7 +1490,7 @@ static int fimc_lite_clk_get(struct fimc_lite *fimc)
1490 return ret; 1490 return ret;
1491} 1491}
1492 1492
1493static int __devinit fimc_lite_probe(struct platform_device *pdev) 1493static int fimc_lite_probe(struct platform_device *pdev)
1494{ 1494{
1495 struct flite_drvdata *drv_data = fimc_lite_get_drvdata(pdev); 1495 struct flite_drvdata *drv_data = fimc_lite_get_drvdata(pdev);
1496 struct fimc_lite *fimc; 1496 struct fimc_lite *fimc;
@@ -1631,7 +1631,7 @@ static int fimc_lite_suspend(struct device *dev)
1631} 1631}
1632#endif /* CONFIG_PM_SLEEP */ 1632#endif /* CONFIG_PM_SLEEP */
1633 1633
1634static int __devexit fimc_lite_remove(struct platform_device *pdev) 1634static int fimc_lite_remove(struct platform_device *pdev)
1635{ 1635{
1636 struct fimc_lite *fimc = platform_get_drvdata(pdev); 1636 struct fimc_lite *fimc = platform_get_drvdata(pdev);
1637 struct device *dev = &pdev->dev; 1637 struct device *dev = &pdev->dev;
@@ -1679,7 +1679,7 @@ static const struct dev_pm_ops fimc_lite_pm_ops = {
1679 1679
1680static struct platform_driver fimc_lite_driver = { 1680static struct platform_driver fimc_lite_driver = {
1681 .probe = fimc_lite_probe, 1681 .probe = fimc_lite_probe,
1682 .remove = __devexit_p(fimc_lite_remove), 1682 .remove = fimc_lite_remove,
1683 .id_table = fimc_lite_driver_ids, 1683 .id_table = fimc_lite_driver_ids,
1684 .driver = { 1684 .driver = {
1685 .name = FIMC_LITE_DRV_NAME, 1685 .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 62f3a71c4f6d..27d346195dbd 100644
--- a/drivers/media/platform/s5p-fimc/fimc-mdevice.c
+++ b/drivers/media/platform/s5p-fimc/fimc-mdevice.c
@@ -567,7 +567,7 @@ static int __fimc_md_create_flite_source_links(struct fimc_md *fmd)
567{ 567{
568 struct media_entity *source, *sink; 568 struct media_entity *source, *sink;
569 unsigned int flags = MEDIA_LNK_FL_ENABLED; 569 unsigned int flags = MEDIA_LNK_FL_ENABLED;
570 int i, ret; 570 int i, ret = 0;
571 571
572 for (i = 0; i < FIMC_LITE_MAX_DEVS; i++) { 572 for (i = 0; i < FIMC_LITE_MAX_DEVS; i++) {
573 struct fimc_lite *fimc = fmd->fimc_lite[i]; 573 struct fimc_lite *fimc = fmd->fimc_lite[i];
@@ -974,7 +974,7 @@ err_md:
974 return ret; 974 return ret;
975} 975}
976 976
977static int __devexit fimc_md_remove(struct platform_device *pdev) 977static int fimc_md_remove(struct platform_device *pdev)
978{ 978{
979 struct fimc_md *fmd = platform_get_drvdata(pdev); 979 struct fimc_md *fmd = platform_get_drvdata(pdev);
980 980
@@ -989,7 +989,7 @@ static int __devexit fimc_md_remove(struct platform_device *pdev)
989 989
990static struct platform_driver fimc_md_driver = { 990static struct platform_driver fimc_md_driver = {
991 .probe = fimc_md_probe, 991 .probe = fimc_md_probe,
992 .remove = __devexit_p(fimc_md_remove), 992 .remove = fimc_md_remove,
993 .driver = { 993 .driver = {
994 .name = "s5p-fimc-md", 994 .name = "s5p-fimc-md",
995 .owner = THIS_MODULE, 995 .owner = THIS_MODULE,
diff --git a/drivers/media/platform/s5p-fimc/mipi-csis.c b/drivers/media/platform/s5p-fimc/mipi-csis.c
index 076c29bd41c8..cde510f0eea6 100644
--- a/drivers/media/platform/s5p-fimc/mipi-csis.c
+++ b/drivers/media/platform/s5p-fimc/mipi-csis.c
@@ -696,7 +696,7 @@ static irqreturn_t s5pcsis_irq_handler(int irq, void *dev_id)
696 return IRQ_HANDLED; 696 return IRQ_HANDLED;
697} 697}
698 698
699static int __devinit s5pcsis_probe(struct platform_device *pdev) 699static int s5pcsis_probe(struct platform_device *pdev)
700{ 700{
701 struct s5p_platform_mipi_csis *pdata; 701 struct s5p_platform_mipi_csis *pdata;
702 struct resource *mem_res; 702 struct resource *mem_res;
@@ -893,7 +893,7 @@ static int s5pcsis_runtime_resume(struct device *dev)
893} 893}
894#endif 894#endif
895 895
896static int __devexit s5pcsis_remove(struct platform_device *pdev) 896static int s5pcsis_remove(struct platform_device *pdev)
897{ 897{
898 struct v4l2_subdev *sd = platform_get_drvdata(pdev); 898 struct v4l2_subdev *sd = platform_get_drvdata(pdev);
899 struct csis_state *state = sd_to_csis_state(sd); 899 struct csis_state *state = sd_to_csis_state(sd);
@@ -918,7 +918,7 @@ static const struct dev_pm_ops s5pcsis_pm_ops = {
918 918
919static struct platform_driver s5pcsis_driver = { 919static struct platform_driver s5pcsis_driver = {
920 .probe = s5pcsis_probe, 920 .probe = s5pcsis_probe,
921 .remove = __devexit_p(s5pcsis_remove), 921 .remove = s5pcsis_remove,
922 .driver = { 922 .driver = {
923 .name = CSIS_DRIVER_NAME, 923 .name = CSIS_DRIVER_NAME,
924 .owner = THIS_MODULE, 924 .owner = THIS_MODULE,
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index b1d7f9a9b996..6347f09ca783 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -408,62 +408,48 @@ leave_handle_frame:
408} 408}
409 409
410/* Error handling for interrupt */ 410/* Error handling for interrupt */
411static void s5p_mfc_handle_error(struct s5p_mfc_ctx *ctx, 411static void s5p_mfc_handle_error(struct s5p_mfc_dev *dev,
412 unsigned int reason, unsigned int err) 412 struct s5p_mfc_ctx *ctx, unsigned int reason, unsigned int err)
413{ 413{
414 struct s5p_mfc_dev *dev;
415 unsigned long flags; 414 unsigned long flags;
416 415
417 /* If no context is available then all necessary
418 * processing has been done. */
419 if (ctx == NULL)
420 return;
421
422 dev = ctx->dev;
423 mfc_err("Interrupt Error: %08x\n", err); 416 mfc_err("Interrupt Error: %08x\n", err);
424 s5p_mfc_hw_call(dev->mfc_ops, clear_int_flags, dev);
425 wake_up_dev(dev, reason, err);
426 417
427 /* Error recovery is dependent on the state of context */ 418 if (ctx != NULL) {
428 switch (ctx->state) { 419 /* Error recovery is dependent on the state of context */
429 case MFCINST_INIT: 420 switch (ctx->state) {
430 /* This error had to happen while acquireing instance */ 421 case MFCINST_RES_CHANGE_INIT:
431 case MFCINST_GOT_INST: 422 case MFCINST_RES_CHANGE_FLUSH:
432 /* This error had to happen while parsing the header */ 423 case MFCINST_RES_CHANGE_END:
433 case MFCINST_HEAD_PARSED: 424 case MFCINST_FINISHING:
434 /* This error had to happen while setting dst buffers */ 425 case MFCINST_FINISHED:
435 case MFCINST_RETURN_INST: 426 case MFCINST_RUNNING:
436 /* This error had to happen while releasing instance */ 427 /* It is higly probable that an error occured
437 clear_work_bit(ctx); 428 * while decoding a frame */
438 wake_up_ctx(ctx, reason, err); 429 clear_work_bit(ctx);
439 if (test_and_clear_bit(0, &dev->hw_lock) == 0) 430 ctx->state = MFCINST_ERROR;
440 BUG(); 431 /* Mark all dst buffers as having an error */
441 s5p_mfc_clock_off(); 432 spin_lock_irqsave(&dev->irqlock, flags);
442 ctx->state = MFCINST_ERROR; 433 s5p_mfc_hw_call(dev->mfc_ops, cleanup_queue,
443 break; 434 &ctx->dst_queue, &ctx->vq_dst);
444 case MFCINST_FINISHING: 435 /* Mark all src buffers as having an error */
445 case MFCINST_FINISHED: 436 s5p_mfc_hw_call(dev->mfc_ops, cleanup_queue,
446 case MFCINST_RUNNING: 437 &ctx->src_queue, &ctx->vq_src);
447 /* It is higly probable that an error occured 438 spin_unlock_irqrestore(&dev->irqlock, flags);
448 * while decoding a frame */ 439 wake_up_ctx(ctx, reason, err);
449 clear_work_bit(ctx); 440 break;
450 ctx->state = MFCINST_ERROR; 441 default:
451 /* Mark all dst buffers as having an error */ 442 clear_work_bit(ctx);
452 spin_lock_irqsave(&dev->irqlock, flags); 443 ctx->state = MFCINST_ERROR;
453 s5p_mfc_hw_call(dev->mfc_ops, cleanup_queue, &ctx->dst_queue, 444 wake_up_ctx(ctx, reason, err);
454 &ctx->vq_dst); 445 break;
455 /* Mark all src buffers as having an error */ 446 }
456 s5p_mfc_hw_call(dev->mfc_ops, cleanup_queue, &ctx->src_queue,
457 &ctx->vq_src);
458 spin_unlock_irqrestore(&dev->irqlock, flags);
459 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
460 BUG();
461 s5p_mfc_clock_off();
462 break;
463 default:
464 mfc_err("Encountered an error interrupt which had not been handled\n");
465 break;
466 } 447 }
448 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
449 BUG();
450 s5p_mfc_hw_call(dev->mfc_ops, clear_int_flags, dev);
451 s5p_mfc_clock_off();
452 wake_up_dev(dev, reason, err);
467 return; 453 return;
468} 454}
469 455
@@ -628,7 +614,7 @@ static irqreturn_t s5p_mfc_irq(int irq, void *priv)
628 dev->warn_start) 614 dev->warn_start)
629 s5p_mfc_handle_frame(ctx, reason, err); 615 s5p_mfc_handle_frame(ctx, reason, err);
630 else 616 else
631 s5p_mfc_handle_error(ctx, reason, err); 617 s5p_mfc_handle_error(dev, ctx, reason, err);
632 clear_bit(0, &dev->enter_suspend); 618 clear_bit(0, &dev->enter_suspend);
633 break; 619 break;
634 620
@@ -1246,7 +1232,7 @@ err_res:
1246} 1232}
1247 1233
1248/* Remove the driver */ 1234/* Remove the driver */
1249static int __devexit s5p_mfc_remove(struct platform_device *pdev) 1235static int s5p_mfc_remove(struct platform_device *pdev)
1250{ 1236{
1251 struct s5p_mfc_dev *dev = platform_get_drvdata(pdev); 1237 struct s5p_mfc_dev *dev = platform_get_drvdata(pdev);
1252 1238
@@ -1441,7 +1427,7 @@ static void *mfc_get_drv_data(struct platform_device *pdev)
1441 1427
1442static struct platform_driver s5p_mfc_driver = { 1428static struct platform_driver s5p_mfc_driver = {
1443 .probe = s5p_mfc_probe, 1429 .probe = s5p_mfc_probe,
1444 .remove = __devexit_p(s5p_mfc_remove), 1430 .remove = s5p_mfc_remove,
1445 .id_table = mfc_driver_ids, 1431 .id_table = mfc_driver_ids,
1446 .driver = { 1432 .driver = {
1447 .name = S5P_MFC_NAME, 1433 .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 c0d0f84e5b86..8de1b3dce459 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
833static int __devinit hdmi_probe(struct platform_device *pdev) 833static 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
982static int __devexit hdmi_remove(struct platform_device *pdev) 982static 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
998static struct platform_driver hdmi_driver __refdata = { 998static 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 94c2a13c3b3a..80717cec76ae 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
282static int __devinit hdmiphy_probe(struct i2c_client *client, 282static 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
298static int __devexit hdmiphy_remove(struct i2c_client *client) 298static 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)
290struct mxr_platform_data; 290struct mxr_platform_data;
291 291
292/** acquiring common video resources */ 292/** acquiring common video resources */
293int __devinit mxr_acquire_video(struct mxr_device *mdev, 293int 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 d5cf603551b2..5733033a6ead 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
154static int __devinit mxr_acquire_plat_resources(struct mxr_device *mdev, 154static 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
274static int __devinit mxr_acquire_resources(struct mxr_device *mdev, 274static 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
313static int __devinit mxr_acquire_layers(struct mxr_device *mdev, 313static 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
375static int __devinit mxr_probe(struct platform_device *pdev) 375static 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
434static int __devexit mxr_remove(struct platform_device *pdev) 434static 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
451static struct platform_driver mxr_driver __refdata = { 451static 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 80ca14b7c4d3..c087b66099fd 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
65int __devinit mxr_acquire_video(struct mxr_device *mdev, 65int 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 35320f08c399..ab6f9ef89423 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
295static int __devinit sdo_probe(struct platform_device *pdev) 295static 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;
@@ -422,7 +422,7 @@ fail:
422 return ret; 422 return ret;
423} 423}
424 424
425static int __devexit sdo_remove(struct platform_device *pdev) 425static int sdo_remove(struct platform_device *pdev)
426{ 426{
427 struct v4l2_subdev *sd = dev_get_drvdata(&pdev->dev); 427 struct v4l2_subdev *sd = dev_get_drvdata(&pdev->dev);
428 struct sdo_device *sdev = sd_to_sdev(sd); 428 struct sdo_device *sdev = sd_to_sdev(sd);
@@ -440,7 +440,7 @@ static int __devexit sdo_remove(struct platform_device *pdev)
440 440
441static struct platform_driver sdo_driver __refdata = { 441static struct platform_driver sdo_driver __refdata = {
442 .probe = sdo_probe, 442 .probe = sdo_probe,
443 .remove = __devexit_p(sdo_remove), 443 .remove = sdo_remove,
444 .driver = { 444 .driver = {
445 .name = "s5p-sdo", 445 .name = "s5p-sdo",
446 .owner = THIS_MODULE, 446 .owner = THIS_MODULE,
diff --git a/drivers/media/platform/s5p-tv/sii9234_drv.c b/drivers/media/platform/s5p-tv/sii9234_drv.c
index 4597342cdfbe..d90d2286090b 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
318static int __devinit sii9234_probe(struct i2c_client *client, 318static 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;
@@ -377,7 +377,7 @@ fail:
377 return ret; 377 return ret;
378} 378}
379 379
380static int __devexit sii9234_remove(struct i2c_client *client) 380static int sii9234_remove(struct i2c_client *client)
381{ 381{
382 struct device *dev = &client->dev; 382 struct device *dev = &client->dev;
383 383
@@ -402,7 +402,7 @@ static struct i2c_driver sii9234_driver = {
402 .pm = &sii9234_pm_ops, 402 .pm = &sii9234_pm_ops,
403 }, 403 },
404 .probe = sii9234_probe, 404 .probe = sii9234_probe,
405 .remove = __devexit_p(sii9234_remove), 405 .remove = sii9234_remove,
406 .id_table = sii9234_id, 406 .id_table = sii9234_id,
407}; 407};
408 408
diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c
index 1039ae82401b..ab5bca40a5b3 100644
--- a/drivers/media/platform/sh_vou.c
+++ b/drivers/media/platform/sh_vou.c
@@ -1327,7 +1327,7 @@ static const struct video_device sh_vou_video_template = {
1327 .vfl_dir = VFL_DIR_TX, 1327 .vfl_dir = VFL_DIR_TX,
1328}; 1328};
1329 1329
1330static int __devinit sh_vou_probe(struct platform_device *pdev) 1330static int sh_vou_probe(struct platform_device *pdev)
1331{ 1331{
1332 struct sh_vou_pdata *vou_pdata = pdev->dev.platform_data; 1332 struct sh_vou_pdata *vou_pdata = pdev->dev.platform_data;
1333 struct v4l2_rect *rect; 1333 struct v4l2_rect *rect;
@@ -1462,7 +1462,7 @@ ereqmemreg:
1462 return ret; 1462 return ret;
1463} 1463}
1464 1464
1465static int __devexit sh_vou_remove(struct platform_device *pdev) 1465static int sh_vou_remove(struct platform_device *pdev)
1466{ 1466{
1467 int irq = platform_get_irq(pdev, 0); 1467 int irq = platform_get_irq(pdev, 0);
1468 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); 1468 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev);
@@ -1488,7 +1488,7 @@ static int __devexit sh_vou_remove(struct platform_device *pdev)
1488} 1488}
1489 1489
1490static struct platform_driver __refdata sh_vou = { 1490static struct platform_driver __refdata sh_vou = {
1491 .remove = __devexit_p(sh_vou_remove), 1491 .remove = sh_vou_remove,
1492 .driver = { 1492 .driver = {
1493 .name = "sh-vou", 1493 .name = "sh-vou",
1494 .owner = THIS_MODULE, 1494 .owner = THIS_MODULE,
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c
index eba1f6b2b0fb..82dbf99d347c 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/* -----------------------------------------------------------------------*/
900static int __devexit atmel_isi_remove(struct platform_device *pdev) 900static 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
924static int __devinit atmel_isi_probe(struct platform_device *pdev) 924static 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
1075static struct platform_driver atmel_isi_driver = { 1075static 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 168e062164e9..27b2e96f27a6 100644
--- a/drivers/media/platform/soc_camera/mx2_camera.c
+++ b/drivers/media/platform/soc_camera/mx2_camera.c
@@ -1429,7 +1429,7 @@ static irqreturn_t mx27_camera_emma_irq(int irq_emma, void *data)
1429 return IRQ_HANDLED; 1429 return IRQ_HANDLED;
1430} 1430}
1431 1431
1432static int __devinit mx27_camera_emma_init(struct platform_device *pdev) 1432static int mx27_camera_emma_init(struct platform_device *pdev)
1433{ 1433{
1434 struct mx2_camera_dev *pcdev = platform_get_drvdata(pdev); 1434 struct mx2_camera_dev *pcdev = platform_get_drvdata(pdev);
1435 struct resource *res_emma; 1435 struct resource *res_emma;
@@ -1487,7 +1487,7 @@ out:
1487 return err; 1487 return err;
1488} 1488}
1489 1489
1490static int __devinit mx2_camera_probe(struct platform_device *pdev) 1490static int mx2_camera_probe(struct platform_device *pdev)
1491{ 1491{
1492 struct mx2_camera_dev *pcdev; 1492 struct mx2_camera_dev *pcdev;
1493 struct resource *res_csi; 1493 struct resource *res_csi;
@@ -1595,7 +1595,7 @@ exit:
1595 return err; 1595 return err;
1596} 1596}
1597 1597
1598static int __devexit mx2_camera_remove(struct platform_device *pdev) 1598static int mx2_camera_remove(struct platform_device *pdev)
1599{ 1599{
1600 struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); 1600 struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev);
1601 struct mx2_camera_dev *pcdev = container_of(soc_host, 1601 struct mx2_camera_dev *pcdev = container_of(soc_host,
@@ -1618,7 +1618,7 @@ static struct platform_driver mx2_camera_driver = {
1618 .name = MX2_CAM_DRV_NAME, 1618 .name = MX2_CAM_DRV_NAME,
1619 }, 1619 },
1620 .id_table = mx2_camera_devtype, 1620 .id_table = mx2_camera_devtype,
1621 .remove = __devexit_p(mx2_camera_remove), 1621 .remove = mx2_camera_remove,
1622 .probe = mx2_camera_probe, 1622 .probe = mx2_camera_probe,
1623}; 1623};
1624 1624
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c
index 37d0d0ef8adf..f5cbb92db545 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
1146static int __devinit mx3_camera_probe(struct platform_device *pdev) 1146static 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
1249static int __devexit mx3_camera_remove(struct platform_device *pdev) 1249static 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
1285module_platform_driver(mx3_camera_driver); 1285module_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 f3c1b6202425..1fbec5202e4f 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
1654static int __devinit pxa_camera_probe(struct platform_device *pdev) 1654static 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
1804static int __devexit pxa_camera_remove(struct platform_device *pdev) 1804static 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
1846module_platform_driver(pxa_camera_driver); 1846module_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 cdf173bbcc93..602584dc9330 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
2074static int __devinit sh_mobile_ceu_probe(struct platform_device *pdev) 2074static 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;
@@ -2247,7 +2247,7 @@ exit_release_mem:
2247 return err; 2247 return err;
2248} 2248}
2249 2249
2250static int __devexit sh_mobile_ceu_remove(struct platform_device *pdev) 2250static int sh_mobile_ceu_remove(struct platform_device *pdev)
2251{ 2251{
2252 struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev); 2252 struct soc_camera_host *soc_host = to_soc_camera_host(&pdev->dev);
2253 struct sh_mobile_ceu_dev *pcdev = container_of(soc_host, 2253 struct sh_mobile_ceu_dev *pcdev = container_of(soc_host,
@@ -2293,7 +2293,7 @@ static struct platform_driver sh_mobile_ceu_driver = {
2293 .pm = &sh_mobile_ceu_dev_pm_ops, 2293 .pm = &sh_mobile_ceu_dev_pm_ops,
2294 }, 2294 },
2295 .probe = sh_mobile_ceu_probe, 2295 .probe = sh_mobile_ceu_probe,
2296 .remove = __devexit_p(sh_mobile_ceu_remove), 2296 .remove = sh_mobile_ceu_remove,
2297}; 2297};
2298 2298
2299static int __init sh_mobile_ceu_init(void) 2299static 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 c573be702641..42c559eb4937 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
297static __devinit int sh_csi2_probe(struct platform_device *pdev) 297static 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;
@@ -355,7 +355,7 @@ esdreg:
355 return ret; 355 return ret;
356} 356}
357 357
358static __devexit int sh_csi2_remove(struct platform_device *pdev) 358static int sh_csi2_remove(struct platform_device *pdev)
359{ 359{
360 struct sh_csi2 *priv = platform_get_drvdata(pdev); 360 struct sh_csi2 *priv = platform_get_drvdata(pdev);
361 361
@@ -367,7 +367,7 @@ static __devexit int sh_csi2_remove(struct platform_device *pdev)
367} 367}
368 368
369static struct platform_driver __refdata sh_csi2_pdrv = { 369static struct platform_driver __refdata sh_csi2_pdrv = {
370 .remove = __devexit_p(sh_csi2_remove), 370 .remove = sh_csi2_remove,
371 .probe = sh_csi2_probe, 371 .probe = sh_csi2_probe,
372 .driver = { 372 .driver = {
373 .name = "sh-mobile-csi2", 373 .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 dd057f19dbc3..8ec98051ea73 100644
--- a/drivers/media/platform/soc_camera/soc_camera.c
+++ b/drivers/media/platform/soc_camera/soc_camera.c
@@ -1535,7 +1535,7 @@ static int soc_camera_video_start(struct soc_camera_device *icd)
1535 return 0; 1535 return 0;
1536} 1536}
1537 1537
1538static int __devinit soc_camera_pdrv_probe(struct platform_device *pdev) 1538static int soc_camera_pdrv_probe(struct platform_device *pdev)
1539{ 1539{
1540 struct soc_camera_desc *sdesc = pdev->dev.platform_data; 1540 struct soc_camera_desc *sdesc = pdev->dev.platform_data;
1541 struct soc_camera_subdev_desc *ssdd = &sdesc->subdev_desc; 1541 struct soc_camera_subdev_desc *ssdd = &sdesc->subdev_desc;
@@ -1570,7 +1570,7 @@ static int __devinit soc_camera_pdrv_probe(struct platform_device *pdev)
1570 * hot-pluggable. Now we know, that all our users - hosts and devices have 1570 * hot-pluggable. Now we know, that all our users - hosts and devices have
1571 * been unloaded already 1571 * been unloaded already
1572 */ 1572 */
1573static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev) 1573static int soc_camera_pdrv_remove(struct platform_device *pdev)
1574{ 1574{
1575 struct soc_camera_device *icd = platform_get_drvdata(pdev); 1575 struct soc_camera_device *icd = platform_get_drvdata(pdev);
1576 1576
@@ -1584,7 +1584,7 @@ static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev)
1584 1584
1585static struct platform_driver __refdata soc_camera_pdrv = { 1585static struct platform_driver __refdata soc_camera_pdrv = {
1586 .probe = soc_camera_pdrv_probe, 1586 .probe = soc_camera_pdrv_probe,
1587 .remove = __devexit_p(soc_camera_pdrv_remove), 1587 .remove = soc_camera_pdrv_remove,
1588 .driver = { 1588 .driver = {
1589 .name = "soc-camera-pdrv", 1589 .name = "soc-camera-pdrv",
1590 .owner = THIS_MODULE, 1590 .owner = THIS_MODULE,
diff --git a/drivers/media/platform/timblogiw.c b/drivers/media/platform/timblogiw.c
index 9de014100a0f..c3a2a4484401 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
748static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = { 748static 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
770static __devinitconst struct v4l2_file_operations timblogiw_fops = { 770static 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
780static __devinitconst struct video_device timblogiw_template = { 780static 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
789static int __devinit timblogiw_probe(struct platform_device *pdev) 789static 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
851static int __devexit timblogiw_remove(struct platform_device *pdev) 851static 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
875module_platform_driver(timblogiw_platform_driver); 875module_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
1327static __devinit bool viacam_serial_is_enabled(void) 1327static 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
1356static __devinit int viacam_probe(struct platform_device *pdev) 1356static 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
1493static __devexit int viacam_remove(struct platform_device *pdev) 1493static 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;