staging: dgap: introduce dgap_cleanup_nodes()
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 31 Jul 2014 04:02:30 +0000 (13:02 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:05 +0000 (12:23 -0700)
commit99a643b8aebb91d1dba8dff6c0e416dfd1140b07
tree35f36af74c8f6757a480f6eb2cef6be7e7a9da01
parent2eb61f38821979dd3d065a8bbb72dc9f6306f005
staging: dgap: introduce dgap_cleanup_nodes()

When a configration file is parsed with dgap_parsefile(),
makes nodes for saving configrations for board.

Making a node will allocate node memory and strings for saving
configrations with kstrdup().

So these are freed when dgap is unloaded or failed to initialize.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Tested-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c