]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/nvdimm/bus.c
stmmac: fix TX normal DESC
[linux-beck.git] / drivers / nvdimm / bus.c
index 33557481d4522c9ff02d4129939ec38b2d3327d5..fc82743aefb6574f6a1e47ecd68e1d0b1557507f 100644 (file)
@@ -62,7 +62,7 @@ static int nvdimm_bus_match(struct device *dev, struct device_driver *drv)
 {
        struct nd_device_driver *nd_drv = to_nd_device_driver(drv);
 
-       return test_bit(to_nd_device_type(dev), &nd_drv->type);
+       return !!test_bit(to_nd_device_type(dev), &nd_drv->type);
 }
 
 static struct module *to_bus_provider(struct device *dev)