gpiolib: make gpiochip_add() show a better error message
authorBen Dooks <[email protected]>
Wed, 26 May 2010 21:42:21 +0000 (14:42 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/gpio/gpiolib.c