diff options
author | Tony Lindgren <tony@atomide.com> | 2017-05-31 18:51:39 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-06-08 07:15:10 -0400 |
commit | 0e78b1218df37f1a1834dff853d967444e332bab (patch) | |
tree | 17fae6ebd385b6feef2580b4855d2729a883a13a | |
parent | 279ebec8f4721d6d3eaacfa218110df508618e2c (diff) |
ARM: OMAP2+: Remove unused legacy code for n8x0
We are now booting all mach-omap2 in device tree only mode.
Any code that is only called in legacy boot mode where
of_have_populated_dt() is not set is safe to remove now.
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
[tony@atomide.com: left out probe changes to avoid merge conflict]
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/board-n8x0.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 91272db09fa3..20f25539d572 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -53,14 +53,12 @@ static u32 board_caps; | |||
53 | 53 | ||
54 | static void board_check_revision(void) | 54 | static void board_check_revision(void) |
55 | { | 55 | { |
56 | if (of_have_populated_dt()) { | 56 | if (of_machine_is_compatible("nokia,n800")) |
57 | if (of_machine_is_compatible("nokia,n800")) | 57 | board_caps = NOKIA_N800; |
58 | board_caps = NOKIA_N800; | 58 | else if (of_machine_is_compatible("nokia,n810")) |
59 | else if (of_machine_is_compatible("nokia,n810")) | 59 | board_caps = NOKIA_N810; |
60 | board_caps = NOKIA_N810; | 60 | else if (of_machine_is_compatible("nokia,n810-wimax")) |
61 | else if (of_machine_is_compatible("nokia,n810-wimax")) | 61 | board_caps = NOKIA_N810_WIMAX; |
62 | board_caps = NOKIA_N810_WIMAX; | ||
63 | } | ||
64 | 62 | ||
65 | if (!board_caps) | 63 | if (!board_caps) |
66 | pr_err("Unknown board\n"); | 64 | pr_err("Unknown board\n"); |