]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-dev: Return correct error code on class_create() failure
authorSven Wegener <sven.wegener@stealer.net>
Sun, 28 Sep 2008 12:14:21 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:22:48 +0000 (20:22 -0700)
commit75678e311ea588ef8f0134ba534482d91fc1e0cb
tree5c9872d1fc111847d4b785f20032630df3decace
parent536e90ea2fb9552a9e17f8ca7ea83043f4240fd2
i2c-dev: Return correct error code on class_create() failure

In Linus' tree:
http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commit;h=e74783ec3cb981211689bd2cfd3248f8dc48ec01

We need to convert the error pointer from class_create(), else we'll return the
successful return code from register_chrdev() on failure.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c