[CPUFREQ] Fix sysfs_create_file return value handling
authorTobias Klauser <tklauser@distanz.ch>
Wed, 13 Jun 2007 22:28:15 +0000 (00:28 +0200)
committerDave Jones <davej@redhat.com>
Thu, 21 Jun 2007 16:57:54 +0000 (12:57 -0400)
commit58a7295bc8073b9e668c329cb9ceb5b668c2b15d
tree932958f082da6e6f115841cd56b5c7e7527006ed
parentea48761519bd40d7a881c587b5f3177664b2987e
[CPUFREQ] Fix sysfs_create_file return value handling

Commit 0a4b2ccc555fa2ca6873d60219047104e4805d45 in cpufreq.git
eliminates the build warnings but does not pass on the error code of
sysfs_create_file to the function calling cpufreq_add_dev. Instead some
previous value of ret would be returned.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c