From 500ea96b14fe448562767f53e3fe487867272ff6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 21 Oct 2003 18:22:36 -0700 Subject: [PATCH] [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. --- drivers/isdn/capi/kcapi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index b8c94f374f6de..368fa23d2d89d 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c @@ -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); } /* ------------------------------------------------------------- */ -- 2.53.0