|
@@ -346,8 +346,16 @@ early_initcall(tegra_init_fuse);
|
|
#ifdef CONFIG_ARM64
|
|
#ifdef CONFIG_ARM64
|
|
static int __init tegra_init_soc(void)
|
|
static int __init tegra_init_soc(void)
|
|
{
|
|
{
|
|
|
|
+ struct device_node *np;
|
|
struct device *soc;
|
|
struct device *soc;
|
|
|
|
|
|
|
|
+ /* make sure we're running on Tegra */
|
|
|
|
+ np = of_find_matching_node(NULL, tegra_fuse_match);
|
|
|
|
+ if (!np)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
+ of_node_put(np);
|
|
|
|
+
|
|
soc = tegra_soc_device_register();
|
|
soc = tegra_soc_device_register();
|
|
if (IS_ERR(soc)) {
|
|
if (IS_ERR(soc)) {
|
|
pr_err("failed to register SoC device: %ld\n", PTR_ERR(soc));
|
|
pr_err("failed to register SoC device: %ld\n", PTR_ERR(soc));
|