Commit 500ea96b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kcapi.c CONFIG_MODULES=n build fix

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.
parent 8bcb3ba1
...@@ -79,7 +79,6 @@ capi_ctr_get(struct capi_ctr *card) ...@@ -79,7 +79,6 @@ capi_ctr_get(struct capi_ctr *card)
{ {
if (!try_module_get(card->owner)) if (!try_module_get(card->owner))
return NULL; return NULL;
DBG("Reserve module: %s", card->owner->name);
return card; return card;
} }
...@@ -87,7 +86,6 @@ static inline void ...@@ -87,7 +86,6 @@ static inline void
capi_ctr_put(struct capi_ctr *card) capi_ctr_put(struct capi_ctr *card)
{ {
module_put(card->owner); module_put(card->owner);
DBG("Release module: %s", card->owner->name);
} }
/* ------------------------------------------------------------- */ /* ------------------------------------------------------------- */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment