]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kcapi.c CONFIG_MODULES=n build fix
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:22:36 +0000 (18:22 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:22:36 +0000 (18:22 -0700)
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.

drivers/isdn/capi/kcapi.c

index b8c94f374f6dee1def656953fc6d0afdf59a9d4d..368fa23d2d89d70f16d401d44d967752d53f81e9 100644 (file)
@@ -79,7 +79,6 @@ capi_ctr_get(struct capi_ctr *card)
 {
        if (!try_module_get(card->owner))
                return NULL;
-       DBG("Reserve module: %s", card->owner->name);
        return card;
 }
 
@@ -87,7 +86,6 @@ static inline void
 capi_ctr_put(struct capi_ctr *card)
 {
        module_put(card->owner);
-       DBG("Release module: %s", card->owner->name);
 }
 
 /* ------------------------------------------------------------- */