Patchwork [2/3] UBI: mark few variables as __initdata

login
register
mail settings
Submitter Artem Bityutskiy
Date Jan. 6, 2010, 2:56 p.m.
Message ID <1262789785-32520-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/42299/
State Accepted
Commit 9e0c7ef3f6c95357ce359a4f9223f0dfcd21cef7
Headers show

Comments

Artem Bityutskiy - Jan. 6, 2010, 2:56 p.m.
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
 drivers/mtd/ubi/build.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 14cec04..eb8f19f 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -59,10 +59,10 @@  struct mtd_dev_param {
 };
 
 /* Numbers of elements set in the @mtd_dev_param array */
-static int mtd_devs;
+static int __initdata mtd_devs;
 
 /* MTD devices specification parameters */
-static struct mtd_dev_param mtd_dev_param[UBI_MAX_DEVICES];
+static struct mtd_dev_param __initdata mtd_dev_param[UBI_MAX_DEVICES];
 
 /* Root UBI "class" object (corresponds to '/<sysfs>/class/ubi/') */
 struct class *ubi_class;