]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/sm_ftl.c
mtd: MTD_NAND_DENALI should depend on HAS_DMA
[karo-tx-linux.git] / drivers / mtd / sm_ftl.c
index f9d5615c572747ee6137a89327aa974322fd949f..3441e73ae819bfe461c78e493175da042dc5c9b9 100644 (file)
@@ -1274,10 +1274,10 @@ static struct mtd_blktrans_ops sm_ftl_ops = {
 static __init int sm_module_init(void)
 {
        int error = 0;
-       cache_flush_workqueue = create_freezable_workqueue("smflush");
 
-       if (IS_ERR(cache_flush_workqueue))
-               return PTR_ERR(cache_flush_workqueue);
+       cache_flush_workqueue = create_freezable_workqueue("smflush");
+       if (!cache_flush_workqueue)
+               return -ENOMEM;
 
        error = register_mtd_blktrans(&sm_ftl_ops);
        if (error)