~xnox/debian/sid/dahdi-linux/nmu-659818

« back to all changes in this revision

Viewing changes to drivers/dahdi/xpp/xproto.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell, Tzafrir Cohen, Victor Seva
  • Date: 2009-05-20 07:22:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090520072246-y1ba8ofc81ykgf8z
Tags: 1:2.2.0~dfsg~rc4-1
* New upstream release

[ Tzafrir Cohen ]
* NOT RELEASED YET
* Dropped qozap as wcb4xxp provides that functionality.
* New upstream RC.
* Actually build OpenVox drivers.
* opvxa1200.c: rev. 1.4.12.4 (battery fixes and such)
* Fix '${match}' in udev rules file (hardwire).
* no_firmware_download: Disable downloading a binary kernel module at 
  build time.

[ Victor Seva ]
* fix debian/watch. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <linux/module.h>
29
29
#include <linux/delay.h>
30
30
 
31
 
static const char rcsid[] = "$Id: xproto.c 5097 2008-10-16 17:40:22Z tzafrir $";
 
31
static const char rcsid[] = "$Id: xproto.c 5987 2009-02-09 06:03:25Z tzafrir $";
32
32
 
33
33
extern  int debug;
34
34
 
93
93
        }
94
94
        if(xtable) {
95
95
                BUG_ON(!xtable->owner);
 
96
#ifdef CONFIG_MODULE_UNLOAD
96
97
                DBG(GENERAL, "%s refcount was %d\n", xtable->name, module_refcount(xtable->owner));
 
98
#endif
97
99
                if(!try_module_get(xtable->owner)) {
98
100
                        ERR("%s: try_module_get for %s failed.\n", __FUNCTION__, xtable->name);
99
101
                        return NULL;
105
107
void xproto_put(const xproto_table_t *xtable)
106
108
{
107
109
        BUG_ON(!xtable);
 
110
#ifdef CONFIG_MODULE_UNLOAD
108
111
        DBG(GENERAL, "%s refcount was %d\n", xtable->name, module_refcount(xtable->owner));
109
112
        BUG_ON(module_refcount(xtable->owner) <= 0);
 
113
#endif
110
114
        module_put(xtable->owner);
111
115
}
112
116
 
437
441
        CHECK_XOP(card_init);
438
442
        CHECK_XOP(card_remove);
439
443
        CHECK_XOP(card_tick);
 
444
        CHECK_XOP(card_pcm_recompute);
440
445
        CHECK_XOP(card_pcm_fromspan);
441
446
        CHECK_XOP(card_pcm_tospan);
442
447
        CHECK_XOP(card_dahdi_preregistration);