mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-03 10:33:11 +02:00
MLK-17674-1: sm_store remove CONFIG_OF
I.MX linux only works with device tree support No need to keep code without CONFIG_OF Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
This commit is contained in:
parent
ba2cb6b5fb
commit
de710d376a
|
@ -1023,16 +1023,11 @@ int caam_sm_startup(struct platform_device *pdev)
|
|||
spin_lock_init(&smpriv->kslock);
|
||||
|
||||
/* 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,
|
||||
smpriv,
|
||||
sizeof(struct caam_drv_private_sm));
|
||||
#endif
|
||||
|
||||
if (sm_pdev == NULL) {
|
||||
kfree(smpriv);
|
||||
return -EINVAL;
|
||||
|
@ -1195,7 +1190,7 @@ void caam_sm_shutdown(struct platform_device *pdev)
|
|||
kfree(smpriv);
|
||||
}
|
||||
EXPORT_SYMBOL(caam_sm_shutdown);
|
||||
#ifdef CONFIG_OF
|
||||
|
||||
static void __exit caam_sm_exit(void)
|
||||
{
|
||||
struct device_node *dev_node;
|
||||
|
@ -1252,4 +1247,3 @@ module_exit(caam_sm_exit);
|
|||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_DESCRIPTION("FSL CAAM Secure Memory / Keystore");
|
||||
MODULE_AUTHOR("Freescale Semiconductor - NMSG/MAD");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user