mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] mtd: of: only add partition layout param when GLOBAL support is enabled
Date: Wed, 12 Apr 2017 15:35:38 +0200	[thread overview]
Message-ID: <20170412133539.32000-2-l.stach@pengutronix.de> (raw)
In-Reply-To: <20170412133539.32000-1-l.stach@pengutronix.de>

Fixes: a2fa18f9f483 (mtd: of: Make used partition binding configurable)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/of/partition.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 25b41cb012c6..ac20490231b5 100644
--- a/drivers/of/partition.c
+++ b/drivers/of/partition.c
@@ -253,9 +253,11 @@ static const char *of_binding_names[] = {
 
 static int of_partition_init(void)
 {
-	dev_add_param_enum(&global_device, "of_partition_binding", NULL, NULL,
-			   &of_partition_binding, of_binding_names,
-			   ARRAY_SIZE(of_binding_names), NULL);
+	if (IS_ENABLED(CONFIG_GLOBALVAR))
+		dev_add_param_enum(&global_device, "of_partition_binding",
+				   NULL, NULL,
+				   &of_partition_binding, of_binding_names,
+				   ARRAY_SIZE(of_binding_names), NULL);
 
 	return 0;
 }
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2017-04-12 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-12 13:35 [PATCH 1/3] common: bootchooser: add dependencies Lucas Stach
2017-04-12 13:35 ` Lucas Stach [this message]
2017-04-12 13:35 ` [PATCH 3/3] ARM: imx: HAB needs fuse driver support Lucas Stach
2017-04-19  6:34 ` [PATCH 1/3] common: bootchooser: add dependencies Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170412133539.32000-2-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox