goto error;
#endif
-#ifdef CONFIG_KEYS_TURNED_OFF
+#ifdef CONFIG_KEYS
ret = afs_key_register();
if (ret < 0)
goto error_cache;
error_kafstimod:
afs_kafstimod_stop();
error_keys:
-#ifdef CONFIG_KEYS_TURNED_OFF
+#ifdef CONFIG_KEYS
afs_key_unregister();
error_cache:
#endif
afs_kafstimod_stop();
afs_kafsasyncd_stop();
afs_cell_purge();
-#ifdef CONFIG_KEYS_TURNED_OFF
+#ifdef CONFIG_KEYS
afs_key_unregister();
#endif
#ifdef AFS_CACHING_SUPPORT