mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-03 10:33:11 +02:00
MLK-12302 caam: Secure Memory platform device creation crashes
There is new flag that is checked in of_platform_device_create(). The flag is cleared prior to the call now so the device creates successfully. Signed-off-by: Dan Douglass <dan.douglass@nxp.com> Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
This commit is contained in:
parent
3ac6edcd92
commit
3004636304
|
@ -36,6 +36,7 @@
|
|||
#include "intern.h"
|
||||
#include "error.h"
|
||||
#include "sm.h"
|
||||
#include <linux/of_address.h>
|
||||
|
||||
#define SECMEM_KEYMOD_LEN 8
|
||||
#define GENMEM_KEYMOD_LEN 16
|
||||
|
@ -1017,6 +1018,8 @@ int caam_sm_startup(struct platform_device *pdev)
|
|||
/* Create the dev */
|
||||
#ifdef CONFIG_OF
|
||||
np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-caam-sm");
|
||||
if (np)
|
||||
of_node_clear_flag(np, OF_POPULATED);
|
||||
sm_pdev = of_platform_device_create(np, "caam_sm", ctrldev);
|
||||
#else
|
||||
sm_pdev = platform_device_register_data(ctrldev, "caam_sm", 0,
|
||||
|
|
Loading…
Reference in New Issue
Block a user