Merge tag 'mmc-v4.6' of git://git.linaro.org/people/ulf.hansson/mmc
[cascardo/linux.git] / drivers / nvdimm / bus.c
index 3355748..fc82743 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)