author | Sven Wegener
<sven.wegener@stealer.net> 2008-09-24 11:39:21 UTC |
committer | Jean Delvare
<khali@mahadeva.delvare> 2008-09-24 11:39:21 UTC |
parent | 4ebb52d34fac2904e541ccfa8e32126db836fa92 |
drivers/i2c/i2c-dev.c | +3 | -1 |
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index af4491fa7e3..307d976c9b6 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -583,8 +583,10 @@ static int __init i2c_dev_init(void) goto out; i2c_dev_class = class_create(THIS_MODULE, "i2c-dev"); - if (IS_ERR(i2c_dev_class)) + if (IS_ERR(i2c_dev_class)) { + res = PTR_ERR(i2c_dev_class); goto out_unreg_chrdev; + } res = i2c_add_driver(&i2cdev_driver); if (res)