> + dev = class_find_device_by_devt(&block_class, devt); > + if (!dev) > + return -EPROBE_DEFER; FYI, class_find_device_by_devt is not for driver use. The only reson it isn't marker static is because of various legacy driver model and devtmpfs interactions.