With CONFIG_MODULES=n this file does not compile because the type of
module->owner is not known.
Gven that card->owner is probably a null pointer when this driver is
statically linked, best thing to do is to just not poke around inside
card->owner at all.
{
if (!try_module_get(card->owner))
return NULL;
- DBG("Reserve module: %s", card->owner->name);
return card;
}
capi_ctr_put(struct capi_ctr *card)
{
module_put(card->owner);
- DBG("Release module: %s", card->owner->name);
}
/* ------------------------------------------------------------- */