From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 4/4] ARM: omap4: pcm049: register devices only when support is enabled
Date: Mon, 22 Jul 2013 11:56:23 +0200 [thread overview]
Message-ID: <1374486983-5263-5-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1374486983-5263-1-git-send-email-s.hauer@pengutronix.de>
With other changes coming into the tree the binary is getting too big.
Save some space by not registering devices for which no support is available.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/pcm049/board.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/pcm049/board.c b/arch/arm/boards/pcm049/board.c
index b7b8ea6..6e4dbf6 100644
--- a/arch/arm/boards/pcm049/board.c
+++ b/arch/arm/boards/pcm049/board.c
@@ -286,7 +286,8 @@ static int pcm049_devices_init(void)
gpmc_generic_init(0x10);
- pcm049_network_init();
+ if (IS_ENABLED(CONFIG_DRIVER_NET_SMC911X))
+ pcm049_network_init();
omap_add_gpmc_nand_device(&nand_plat);
@@ -302,7 +303,8 @@ static int pcm049_devices_init(void)
armlinux_set_bootparams((void *)0x80000100);
armlinux_set_architecture(MACH_TYPE_PCM049);
- omap_add_display(&pcm049_fb_data);
+ if (IS_ENABLED(CONFIG_DRIVER_VIDEO_OMAP))
+ omap_add_display(&pcm049_fb_data);
return 0;
}
--
1.8.3.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-07-22 9:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 9:56 [PATCH] some minor image size decrease Sascha Hauer
2013-07-22 9:56 ` [PATCH 1/4] mtd: nand: omap: do not set write callback if mtd write is disabled Sascha Hauer
2013-07-22 9:56 ` [PATCH 2/4] block: shortcut writebuffer_flush if writing " Sascha Hauer
2013-07-22 9:56 ` [PATCH 3/4] ARM: omap4: Use writel where appropriate Sascha Hauer
2013-07-22 9:56 ` Sascha Hauer [this message]
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=1374486983-5263-5-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@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