The patch titled i2c-dev: return correct error code on class_create() failure has been removed from the -mm tree. Its filename was i2c-dev-return-correct-error-code-on-class_create-failure.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: i2c-dev: return correct error code on class_create() failure From: Sven Wegener <sven.wegener@xxxxxxxxxxx> 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@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/i2c/i2c-dev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/i2c/i2c-dev.c~i2c-dev-return-correct-error-code-on-class_create-failure drivers/i2c/i2c-dev.c --- a/drivers/i2c/i2c-dev.c~i2c-dev-return-correct-error-code-on-class_create-failure +++ a/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) _ Patches currently in -mm which might be from sven.wegener@xxxxxxxxxxx are linux-next.patch leds-avoid-needless-strlen-for-attributes.patch leds-wrap-use-default-on-trigger-for-power-led.patch leds-fsg-change-order-of-initialization-and-deinitialization.patch leds-pca955x-add-proper-error-handling-and-fix-bogus-memory-handling.patch md-check-for-memory-allocation-failure-in-faulty-personality.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html