> if (strncmp(cd->cf_name, biv->devname, len) == 0 &&
> - biv->devname[len] - '0' == cd->cf_unit) {
> + biv->devname[len] - '0' == dv->dv_unit) {
i guess it should be device_unit().
otherwise seems reasonable to me.
YAMAMOTO Takashi