gpiolib: make gpiochip_add() show a better error message
authorBen Dooks <ben-linux@fluff.org>
Wed, 26 May 2010 21:42:21 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:41 +0000 (09:12 -0700)
commit796a8e423ac8afe9e98ad96e668f50142bdd7825
tree1ecf3e0e86c41695e24bc0102c686aedbca98c41
parenta13c1868aa60ae7a2516b8d00ee8873dea587581
gpiolib: make gpiochip_add() show a better error message

The current message, 'not registered' is confusing as it implies it was
not registered with something, whereas printing 'failed to register'
implies it was the gpiochip_add() call that did not work correctly.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpiolib.c