Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e78b121 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

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: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
[tony@atomide.com: left out probe changes to avoid merge conflict]
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 279ebec8
Loading
Loading
Loading
Loading
+6 −8
Original line number Original line Diff line number Diff line
@@ -53,14 +53,12 @@ static u32 board_caps;


static void board_check_revision(void)
static void board_check_revision(void)
{
{
	if (of_have_populated_dt()) {
	if (of_machine_is_compatible("nokia,n800"))
	if (of_machine_is_compatible("nokia,n800"))
		board_caps = NOKIA_N800;
		board_caps = NOKIA_N800;
	else if (of_machine_is_compatible("nokia,n810"))
	else if (of_machine_is_compatible("nokia,n810"))
		board_caps = NOKIA_N810;
		board_caps = NOKIA_N810;
	else if (of_machine_is_compatible("nokia,n810-wimax"))
	else if (of_machine_is_compatible("nokia,n810-wimax"))
		board_caps = NOKIA_N810_WIMAX;
		board_caps = NOKIA_N810_WIMAX;
	}


	if (!board_caps)
	if (!board_caps)
		pr_err("Unknown board\n");
		pr_err("Unknown board\n");