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>
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
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