]> git.baikalelectronics.ru Git - kernel.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)
commit88b9d8e461180d6d90ba7564b60c3de083738a82
treeef57f0ec43ce68d0f54ae1e8aece0df986f77741
parent0834e25540cf673bf61caae79d6426595fd5541a
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