|
@@ -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);
|
|
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)
|
|
static struct module *to_bus_provider(struct device *dev)
|