Searched refs:class_dev (Results 1 – 1 of 1) sorted by relevance
259 if (!bcd->class_dev) in bsg_map_hdr()792 strncpy(bd->name, dev_name(rq->bsg_dev.class_dev), sizeof(bd->name) - 1); in bsg_add_device()980 if (!bcd->class_dev) in bsg_unregister_queue()987 device_unregister(bcd->class_dev); in bsg_unregister_queue()988 bcd->class_dev = NULL; in bsg_unregister_queue()1000 struct device *class_dev = NULL; in bsg_register_queue() local1034 class_dev = device_create(bsg_class, parent, dev, NULL, "%s", devname); in bsg_register_queue()1035 if (IS_ERR(class_dev)) { in bsg_register_queue()1036 ret = PTR_ERR(class_dev); in bsg_register_queue()1039 bcd->class_dev = class_dev; in bsg_register_queue()[all …]