staging: dgap: Only read config file dgap.conf once
authorMark Hounschell <markh@compro.net>
Tue, 25 Mar 2014 20:38:14 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:49:10 +0000 (08:49 -0700)
commit9e84401638143184cb16a2d5c5326476c13467e8
treee2c51aa193f4a888fdfc9dea4a3551ab6ff8033b
parent559edcb73a13af63066aee0e9a322383fef7cae2
staging: dgap: Only read config file dgap.conf once

The config file is currently read for each board found.
It only needs to be read one time. The buffer it is read
into can now be freed immediately after it is parsed
instead of at driver unload time.

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c