kernel/drivers/crypto/ccree/cc_driver.c
.. .. @@ -614,9 +614,17 @@ 614 614 615 615 static int __init ccree_init(void) 616 616 { 617 + int rc;618 +617 619 cc_debugfs_global_init(); 618 620 619 - return platform_driver_register(&ccree_driver);621 + rc = platform_driver_register(&ccree_driver);622 + if (rc) {623 + cc_debugfs_global_fini();624 + return rc;625 + }626 +627 + return 0;620 628 } 621 629 module_init(ccree_init); 622 630