Staging: ti-st: fix protocol counting
authorNaveen Jain <naveen_jain@ti.com>
Wed, 9 Jun 2010 12:20:40 +0000 (07:20 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Jun 2010 19:40:29 +0000 (12:40 -0700)
Older mechanism of counting the number of protocols
registered with ST was slow, in-efficient.
It used to check the protocol data for NULL for each
registration/unregistration.

With this change, counting protocols in maintained by
a single counter protos_registered.

Counting protocols is not just for debug purposes

Signed-off-by: Naveen Jain <naveen_jain@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found