[media] media: davinci: fix section mismatch warnings
authorLad, Prabhakar <prabhakar.lad@ti.com>
Tue, 14 Aug 2012 04:23:09 +0000 (01:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 14 Aug 2012 11:45:49 +0000 (08:45 -0300)
This patch fixes section mismatch warnings for
davinci video drivers.

[mchehab@redhat.com: applied it as a fixup over the previous (and wrong) changeset c6afbf2]
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/davinci/dm355_ccdc.c
drivers/media/video/davinci/dm644x_ccdc.c
drivers/media/video/davinci/isif.c
drivers/media/video/davinci/vpfe_capture.c
drivers/media/video/davinci/vpif.c
drivers/media/video/davinci/vpss.c

index 2eb7dbd6dbacbf8323927e5b3812eb3d02fda739..ce0e4131c0672ba882c6a45b819ed7dfe2b960ae 100644 (file)
@@ -965,7 +965,7 @@ static struct ccdc_hw_device ccdc_hw_dev = {
        },
 };
 
-static int __init dm355_ccdc_probe(struct platform_device *pdev)
+static int __devinit dm355_ccdc_probe(struct platform_device *pdev)
 {
        void (*setup_pinmux)(void);
        struct resource *res;
@@ -1060,7 +1060,7 @@ static int dm355_ccdc_remove(struct platform_device *pdev)
        return 0;
 }
 
-static __refdata struct platform_driver dm355_ccdc_driver = {
+static struct platform_driver dm355_ccdc_driver = {
        .driver = {
                .name   = "dm355_ccdc",
                .owner = THIS_MODULE,
index 3ffb7f2da10fd45d46415643999e860e8cf67420..ee7942b1996ed2fdb11f201891178d29c10317f3 100644 (file)
@@ -957,7 +957,7 @@ static struct ccdc_hw_device ccdc_hw_dev = {
        },
 };
 
-static int __init dm644x_ccdc_probe(struct platform_device *pdev)
+static int __devinit dm644x_ccdc_probe(struct platform_device *pdev)
 {
        struct resource *res;
        int status = 0;
@@ -1068,7 +1068,7 @@ static const struct dev_pm_ops dm644x_ccdc_pm_ops = {
        .resume = dm644x_ccdc_resume,
 };
 
-static __refdata struct platform_driver dm644x_ccdc_driver = {
+static struct platform_driver dm644x_ccdc_driver = {
        .driver = {
                .name   = "dm644x_ccdc",
                .owner = THIS_MODULE,
index 6ce42493c60f8fe8781167df8b7dc75c6b42d866..b99d5423e3a8dc16d115c244e6e391f870924c79 100644 (file)
@@ -1032,7 +1032,7 @@ static struct ccdc_hw_device isif_hw_dev = {
        },
 };
 
-static int __init isif_probe(struct platform_device *pdev)
+static int __devinit isif_probe(struct platform_device *pdev)
 {
        void (*setup_pinmux)(void);
        struct resource *res;
@@ -1148,7 +1148,7 @@ static int isif_remove(struct platform_device *pdev)
        return 0;
 }
 
-static __refdata struct platform_driver isif_driver = {
+static struct platform_driver isif_driver = {
        .driver = {
                .name   = "isif",
                .owner = THIS_MODULE,
index 572d8f08d9ebf6ee31dc3dd5ff460837ec0bd84d..843b138faabe8ae0bbca1d7afd0fbbf1f7c3cf20 100644 (file)
@@ -1829,7 +1829,7 @@ static struct vpfe_device *vpfe_initialize(void)
  * itself to the V4L2 driver and initializes fields of each
  * device objects
  */
-static __init int vpfe_probe(struct platform_device *pdev)
+static __devinit int vpfe_probe(struct platform_device *pdev)
 {
        struct vpfe_subdev_info *sdinfo;
        struct vpfe_config *vpfe_cfg;
@@ -2066,7 +2066,7 @@ static const struct dev_pm_ops vpfe_dev_pm_ops = {
        .resume = vpfe_resume,
 };
 
-static __refdata struct platform_driver vpfe_driver = {
+static struct platform_driver vpfe_driver = {
        .driver = {
                .name = CAPTURE_DRV_NAME,
                .owner = THIS_MODULE,
index a058fed768efaeaaad35e7b1623f4ccb2d00f9f4..9bd3caa34a3e61ee3d535fe5126ae1d7c67783fb 100644 (file)
@@ -417,7 +417,7 @@ int vpif_channel_getfid(u8 channel_id)
 }
 EXPORT_SYMBOL(vpif_channel_getfid);
 
-static int __init vpif_probe(struct platform_device *pdev)
+static int __devinit vpif_probe(struct platform_device *pdev)
 {
        int status = 0;
 
@@ -490,7 +490,7 @@ static const struct dev_pm_ops vpif_pm = {
 #define vpif_pm_ops NULL
 #endif
 
-static __refdata struct platform_driver vpif_driver = {
+static struct platform_driver vpif_driver = {
        .driver = {
                .name   = "vpif",
                .owner = THIS_MODULE,
index 8f682d8255c03a6b2768e63cdcd56445792444c7..146e4b01ac177593b58ad5c7fadc1724d2118973 100644 (file)
@@ -357,7 +357,7 @@ void dm365_vpss_set_pg_frame_size(struct vpss_pg_frame_size frame_size)
 }
 EXPORT_SYMBOL(dm365_vpss_set_pg_frame_size);
 
-static int __init vpss_probe(struct platform_device *pdev)
+static int __devinit vpss_probe(struct platform_device *pdev)
 {
        struct resource         *r1, *r2;
        char *platform_name;
@@ -460,7 +460,7 @@ static int __devexit vpss_remove(struct platform_device *pdev)
        return 0;
 }
 
-static __refdata struct platform_driver vpss_driver = {
+static struct platform_driver vpss_driver = {
        .driver = {
                .name   = "vpss",
                .owner = THIS_MODULE,