staging: dgap: Remove printks associated with sysfile creation
authorMark Hounschell <markh@compro.net>
Thu, 6 Mar 2014 18:57:55 +0000 (13:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Mar 2014 22:16:40 +0000 (14:16 -0800)
commit434b679bdb4d10615701aa152e800123f47274fe
treee288b925aa6a1ab4479aa267452b1896d272ba27
parent6126022800e41338ac866d8334e5cf1325734ecb
staging: dgap: Remove printks associated with sysfile creation

This patch removes printks associated with sysfile creation
and changes the dgap_create_driver_sysfiles function to return
an int so we can check for errors in the sysfile creation
process.

The printk's were flagged by checkpatch but then
driver_create_file was flagged by checkpatch for
not checking its return. So we remove the printk's
and check the return of driver_create_file.

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