lightnvm: deprecated OCSSD support and schedule it for removal in Linux 5.15
[linux-2.6-microblaze.git] / drivers / lightnvm / core.c
index 42774be..40a948c 100644 (file)
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
 {
        int ret, exp_pool_size;
 
+       pr_warn_once("lightnvm support is deprecated and will be removed in Linux 5.15.\n");
+
        if (!dev->q || !dev->ops) {
                kref_put(&dev->ref, nvm_free);
                return -EINVAL;