summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-04-27 17:14:57 +0200
committerRichard Weinberger <richard@nod.at>2019-05-06 21:47:01 +0200
commit251f26c9e828aa441a603efc32e0308ca76f172c (patch)
tree6a25919ee839f48d933809383349de4356babc9e /drivers/mtd
parentd41970097f10d898cef0eb04bf53d786efd6bbbc (diff)
downloadlinux-251f26c9e828aa441a603efc32e0308ca76f172c.tar.bz2
mtd: maps: Make uclinux_ram_map static
The blackfin architecture has been removed a while ago, so there is no more need to declare uclinux_ram_map as a global structure. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/maps/uclinux.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c
index aef030ca8601..de4c46318abb 100644
--- a/drivers/mtd/maps/uclinux.c
+++ b/drivers/mtd/maps/uclinux.c
@@ -31,13 +31,7 @@
#define MAP_NAME "ram"
#endif
-/*
- * Blackfin uses uclinux_ram_map during startup, so it must not be static.
- * Provide a dummy declaration to make sparse happy.
- */
-extern struct map_info uclinux_ram_map;
-
-struct map_info uclinux_ram_map = {
+static struct map_info uclinux_ram_map = {
.name = MAP_NAME,
.size = 0,
};