Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Brijesh Singh <brijesh.singh@amd.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Brijesh Singh and committed by
Herbert Xu
57de3aef d0ebbc0c

-12
-12
drivers/crypto/ccp/sp-dev.c
··· 246 246 if (ret) 247 247 return ret; 248 248 249 - /* Don't leave the driver loaded if init failed */ 250 - if (ccp_present() != 0) { 251 - sp_pci_exit(); 252 - return -ENODEV; 253 - } 254 - 255 249 return 0; 256 250 #endif 257 251 ··· 255 261 ret = sp_platform_init(); 256 262 if (ret) 257 263 return ret; 258 - 259 - /* Don't leave the driver loaded if init failed */ 260 - if (ccp_present() != 0) { 261 - sp_platform_exit(); 262 - return -ENODEV; 263 - } 264 264 265 265 return 0; 266 266 #endif