summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-08-17 14:42:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-20 02:10:10 +0200
commitcebcac7c59e812d17237c13405aa6886199a1b90 (patch)
tree3b9f6493a824115a22dd40f822c040e75e7732b7 /drivers
parentdrivers / platform: Fix __init attribute location (diff)
downloadlinux-cebcac7c59e812d17237c13405aa6886199a1b90.tar.xz
linux-cebcac7c59e812d17237c13405aa6886199a1b90.zip
drivers / dma-contiguous: Fix __init attribute location
__init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/dma-contiguous.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c
index 0ca54421ce97..6c9cdaa9200d 100644
--- a/drivers/base/dma-contiguous.c
+++ b/drivers/base/dma-contiguous.c
@@ -134,7 +134,7 @@ void __init dma_contiguous_reserve(phys_addr_t limit)
static DEFINE_MUTEX(cma_mutex);
-static __init int cma_activate_area(unsigned long base_pfn, unsigned long count)
+static int __init cma_activate_area(unsigned long base_pfn, unsigned long count)
{
unsigned long pfn = base_pfn;
unsigned i = count >> pageblock_order;
@@ -156,7 +156,7 @@ static __init int cma_activate_area(unsigned long base_pfn, unsigned long count)
return 0;
}
-static __init struct cma *cma_create_area(unsigned long base_pfn,
+static struct cma * __init cma_create_area(unsigned long base_pfn,
unsigned long count)
{
int bitmap_size = BITS_TO_LONGS(count) * sizeof(long);