sony-laptop: return negative on failure in sony_nc_add()
authorDan Carpenter <error27@gmail.com>
Sat, 26 Feb 2011 12:54:57 +0000 (15:54 +0300)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:25 +0000 (06:07 -0400)
commit7227dedbc22f66f1bd310c866053b08de0496e38
treed6abcf6031bca9d042dfba9d4e0088f7cdf55891
parentf11113b22cd84b0adc355eaaa80be433005f5f45
sony-laptop: return negative on failure in sony_nc_add()

There were two places in sony_nc_add() where we returned zero on failure
instead of a negative error code.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c