]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: audio_manager: use an 'ida' for the module id
authorGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 Jan 2016 00:52:17 +0000 (16:52 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Feb 2016 05:26:32 +0000 (21:26 -0800)
commit3c5de59473f88aeb12420f142d42801d4d389759
tree3af41f27785369ce0e7395d7edcbee9f70d27892
parent3f830562deade2ab6163f07ee6829158cc070ee4
greybus: audio_manager: use an 'ida' for the module id

Every time we hotplug an audio module, we get a new audio module id.  We
should recycle them instead of just constantly incrementing the number
so we don't see things like:
[178016.832580] Created audio module #6124
in the kernel logs.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_manager.c