Skip to content
Commit e74783ec authored by Sven Wegener's avatar Sven Wegener Committed by Jean Delvare
Browse files

i2c-dev: Return correct error code on class_create() failure



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: default avatarSven Wegener <sven.wegener@stealer.net>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 4ebb52d3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment