]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commit36e574fed5578aeee0ce4c7359bc17cc0b8e0b57
treeef57f0ec43ce68d0f54ae1e8aece0df986f77741
parente2a53282859fab0e428a243cbe9ca8d727d9d840
Staging: ti-st: fix protocol counting

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>
drivers/staging/ti-st/st_core.c