staging: oplc_dcon: Fix compilation warning.
authorMarek Belisko <marek.belisko@open-nandra.com>
Thu, 3 Feb 2011 13:22:08 +0000 (14:22 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 21:04:53 +0000 (13:04 -0800)
commita90dcd4f7dfc3e664e7d08790a8b39d052e21a2e
treee716f52af7f523be3659fd38a8cf09aff9a0cb0d
parent3ad4e219606fa317f778b26553889520aed7925c
staging: oplc_dcon: Fix compilation warning.

Fix compilation warning:
drivers/staging/olpc_dcon/olpc_dcon.c: In function ‘dcon_probe’:
drivers/staging/olpc_dcon/olpc_dcon.c:704:21: warning: ignoring
return value of ‘device_create_file’, declared with attribute warn_unused_result

and add cleaning of created files when creation of one failed.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/olpc_dcon/olpc_dcon.c