Message ID | 37e36b3fc2c97ae93d729c07a260dfb020facce2.1474450296.git.dwalter@sigma-star.at |
---|---|
State | Changes Requested |
Delegated to: | Boris Brezillon |
Headers | show |
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 56a2904..0e8574e 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c @@ -2536,10 +2536,15 @@ static int ns_ctrl_new_instance(struct ns_new_instance_req *req) case NANDSIM_BACKEND_RAM: nsparam->bops = &ns_ram_bops; break; + case NANDSIM_BACKEND_FILE: nsparam->bops = &ns_file_bops; break; + case NANDSIM_BACKEND_CACHEFILE: + nsparam->bops = &ns_cachefile_bops; + break; + default: kfree(nsparam); return -EINVAL;