]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/nvdimm/bus.c
net: phy: micrel: Update KSZ87xx PHY name
[linux.git] / drivers / nvdimm / bus.c
index 75a58a6e961577e1111f7dbcae36f6005805376e..d47412dcdf38dabad1384e74951b008745e3aa7c 100644 (file)
@@ -180,7 +180,7 @@ static int nvdimm_clear_badblocks_region(struct device *dev, void *data)
        sector_t sector;
 
        /* make sure device is a region */
-       if (!is_nd_pmem(dev))
+       if (!is_memory(dev))
                return 0;
 
        nd_region = to_nd_region(dev);