Commit 4ee1cc79 authored by Tomasz Figa's avatar Tomasz Figa Committed by Kukjin Kim

ARM: EXYNOS: Remove check for device tree presence

This patch makes the firmware setup code assume presence of DT, since it
is now the only way of booting supported for Exynos.
Signed-off-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 04fae596
...@@ -48,20 +48,18 @@ static const struct firmware_ops exynos_firmware_ops = { ...@@ -48,20 +48,18 @@ static const struct firmware_ops exynos_firmware_ops = {
void __init exynos_firmware_init(void) void __init exynos_firmware_init(void)
{ {
if (of_have_populated_dt()) { struct device_node *nd;
struct device_node *nd; const __be32 *addr;
const __be32 *addr;
nd = of_find_compatible_node(NULL, NULL, nd = of_find_compatible_node(NULL, NULL,
"samsung,secure-firmware"); "samsung,secure-firmware");
if (!nd) if (!nd)
return; return;
addr = of_get_address(nd, 0, NULL, NULL); addr = of_get_address(nd, 0, NULL, NULL);
if (!addr) { if (!addr) {
pr_err("%s: No address specified.\n", __func__); pr_err("%s: No address specified.\n", __func__);
return; return;
}
} }
pr_info("Running under secure firmware.\n"); pr_info("Running under secure firmware.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment