summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Medve <Emilian.Medve@Freescale.com>2014-01-08 10:41:02 (GMT)
committerEmilian Medve <Emilian.Medve@freescale.com>2014-01-10 16:55:47 (GMT)
commitdd057dd1aa16ca8ca6fffddc648a07d63942e423 (patch)
treed8a697639d8f20387712368ed4f38ddfdbb76ea1
parent19b9eafed0f43d2fd2e3506a90118f41857ae19e (diff)
downloadlinux-fsl-qoriq-dd057dd1aa16ca8ca6fffddc648a07d63942e423.tar.xz
fsl_qbman: Fix the checkpatch warning type HOTPLUG_SECTION
WARNING:HOTPLUG_SECTION: Using __devinit is unnecessary Also get rid of __devexit[_p] Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I369aa7cc51a8ce34af717b013619d70f293bd82c Reviewed-on: http://git.am.freescale.net:8181/7780 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com>
-rw-r--r--drivers/staging/fsl_qbman/bman_config.c4
-rw-r--r--drivers/staging/fsl_qbman/dpa_sys.h3
-rw-r--r--drivers/staging/fsl_qbman/qman_config.c4
3 files changed, 4 insertions, 7 deletions
diff --git a/drivers/staging/fsl_qbman/bman_config.c b/drivers/staging/fsl_qbman/bman_config.c
index e4b1984..c92a8cf 100644
--- a/drivers/staging/fsl_qbman/bman_config.c
+++ b/drivers/staging/fsl_qbman/bman_config.c
@@ -598,7 +598,7 @@ static int of_fsl_bman_remove(struct platform_device *ofdev)
return 0;
};
-static int __devinit of_fsl_bman_probe(struct platform_device *ofdev)
+static int of_fsl_bman_probe(struct platform_device *ofdev)
{
int ret, i;
@@ -683,7 +683,7 @@ static struct platform_driver of_fsl_bman_driver = {
.of_match_table = of_fsl_bman_ids,
},
.probe = of_fsl_bman_probe,
- .remove = __devexit_p(of_fsl_bman_remove),
+ .remove = of_fsl_bman_remove,
};
static int bman_ctrl_init(void)
diff --git a/drivers/staging/fsl_qbman/dpa_sys.h b/drivers/staging/fsl_qbman/dpa_sys.h
index f687bf2..7e1e953 100644
--- a/drivers/staging/fsl_qbman/dpa_sys.h
+++ b/drivers/staging/fsl_qbman/dpa_sys.h
@@ -66,9 +66,6 @@
#include <linux/fsl_usdpaa.h>
-#define __devinit
-#define __devexit_p
-
/* When copying aligned words or shorts, try to avoid memcpy() */
#define CONFIG_TRY_BETTER_MEMCPY
diff --git a/drivers/staging/fsl_qbman/qman_config.c b/drivers/staging/fsl_qbman/qman_config.c
index c55912b..f96b15f 100644
--- a/drivers/staging/fsl_qbman/qman_config.c
+++ b/drivers/staging/fsl_qbman/qman_config.c
@@ -1146,7 +1146,7 @@ static int of_fsl_qman_remove(struct platform_device *ofdev)
return 0;
};
-static int __devinit of_fsl_qman_probe(struct platform_device *ofdev)
+static int of_fsl_qman_probe(struct platform_device *ofdev)
{
int ret;
@@ -1187,7 +1187,7 @@ static struct platform_driver of_fsl_qman_driver = {
.of_match_table = of_fsl_qman_ids,
},
.probe = of_fsl_qman_probe,
- .remove = __devexit_p(of_fsl_qman_remove),
+ .remove = of_fsl_qman_remove,
};
static int qman_ctrl_init(void)