Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d52ed4d1 authored by Prateek Sood's avatar Prateek Sood Committed by Gerrit - the friendly Code Review server
Browse files

msm: qcrypto: Continue qcrypto init when !DEBUG_FS



_qcrypto_init() should not be dependent on DEBUG_FS
API's returning success. Continue device init,
when DEBUG_FS is disabled.

Change-Id: I3298f2644c2f3ed6f417170e4c3ceaab8aa46dd1
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
parent 8b72bbf9
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
/*
 * QTI Crypto driver
 *
 * Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2010-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/module.h>
@@ -5546,12 +5546,9 @@ static int _qcrypto_debug_init(void)

static int __init _qcrypto_init(void)
{
	int rc;
	struct crypto_priv *pcp = &qcrypto_dev;

	rc = _qcrypto_debug_init();
	if (rc)
		return rc;
	_qcrypto_debug_init();
	INIT_LIST_HEAD(&pcp->alg_list);
	INIT_LIST_HEAD(&pcp->engine_list);
	init_llist_head(&pcp->ordered_resp_list);