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

Commit 57de3aef authored by Brijesh Singh's avatar Brijesh Singh Committed by Herbert Xu
Browse files

crypto: ccp - remove ccp_present() check from device initialize



Since SP device driver supports multiples devices (e.g CCP, PSP), we
should not fail the driver init just because CCP device is not found.

Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
Acked-by: default avatarGary R Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d0ebbc0c
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -246,12 +246,6 @@ static int __init sp_mod_init(void)
	if (ret)
		return ret;

	/* Don't leave the driver loaded if init failed */
	if (ccp_present() != 0) {
		sp_pci_exit();
		return -ENODEV;
	}

	return 0;
#endif

@@ -262,12 +256,6 @@ static int __init sp_mod_init(void)
	if (ret)
		return ret;

	/* Don't leave the driver loaded if init failed */
	if (ccp_present() != 0) {
		sp_platform_exit();
		return -ENODEV;
	}

	return 0;
#endif