Skip to content
Snippets Groups Projects
Commit ae29ddaf authored by Octavian Purdila's avatar Octavian Purdila Committed by Jason Liu
Browse files

MLK-16020 drivers: soc: imx8: fill in machine field


As for imx6/7, read the 'model' field from device tree and fill in the
machine soc field.

Signed-off-by: default avatarOctavian Purdila <octavian.purdila@nxp.com>
parent 3bfe59b5
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,8 @@ static int __init imx8_soc_init(void)
if (!soc_dev_attr->revision)
goto free_soc;
of_property_read_string(of_root, "model", &soc_dev_attr->machine);
soc_dev = soc_device_register(soc_dev_attr);
if (IS_ERR(soc_dev))
goto free_rev;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment