Hello, I'm resending this patch set in the hope that it will reach the linux-media list this time. The previous version never made it to the list (and thus neither did it reach patchwork), possibly because of the large CC list. I've thus kept the list e-mail address only, sorry for the inconvenience. The subject says it all. The first two patches fix bugs related to error paths, the next patch converts gpio_request() users to gpio_request_one(), and the rest of the patch set converts all I2C drivers to the devm_* API. Patches 4/9 to 6/9 convert most I2C drivers in one go, with more complex cases handled separately in patches 7/9 to 9/9. Laurent Pinchart (9): mt9v032: Free control handler in cleanup paths tvp514x: Fix double free media: i2c: Convert to gpio_request_one() media: i2c: Convert to devm_kzalloc() media: i2c: Convert to devm_gpio_request_one() media: i2c: Convert to devm_regulator_bulk_get() m5mols: Convert to devm_request_irq() s5c73m3: Convert to devm_gpio_request_one() s5k6aa: Convert to devm_gpio_request_one() drivers/media/i2c/ad9389b.c | 8 +--- drivers/media/i2c/adp1653.c | 5 +- drivers/media/i2c/adv7170.c | 3 +- drivers/media/i2c/adv7175.c | 3 +- drivers/media/i2c/adv7180.c | 4 +- drivers/media/i2c/adv7183.c | 38 ++++++--------- drivers/media/i2c/adv7393.c | 8 +--- drivers/media/i2c/adv7604.c | 11 ++--- drivers/media/i2c/ak881x.c | 4 +- drivers/media/i2c/as3645a.c | 7 +-- drivers/media/i2c/bt819.c | 4 +- drivers/media/i2c/bt856.c | 3 +- drivers/media/i2c/bt866.c | 3 +- drivers/media/i2c/cs5345.c | 4 +- drivers/media/i2c/cs53l32a.c | 4 +- drivers/media/i2c/cx25840/cx25840-core.c | 4 +- drivers/media/i2c/cx25840/cx25840-ir.c | 7 +-- drivers/media/i2c/ir-kbd-i2c.c | 10 ++-- drivers/media/i2c/ks0127.c | 3 +- drivers/media/i2c/m52790.c | 3 +- drivers/media/i2c/m5mols/m5mols_core.c | 43 +++++++---------- drivers/media/i2c/msp3400-driver.c | 5 +- drivers/media/i2c/mt9m032.c | 4 +- drivers/media/i2c/mt9t001.c | 4 +- drivers/media/i2c/mt9v011.c | 6 +-- drivers/media/i2c/mt9v032.c | 8 ++-- drivers/media/i2c/noon010pc30.c | 40 +++++----------- drivers/media/i2c/ov7640.c | 5 +- drivers/media/i2c/ov7670.c | 5 +- drivers/media/i2c/s5c73m3/s5c73m3-core.c | 79 +++++++++++--------------------- drivers/media/i2c/s5k6aa.c | 73 +++++++++++------------------ drivers/media/i2c/saa6588.c | 10 ++-- drivers/media/i2c/saa7110.c | 4 +- drivers/media/i2c/saa7115.c | 4 +- drivers/media/i2c/saa7127.c | 4 +- drivers/media/i2c/saa717x.c | 5 +- drivers/media/i2c/saa7185.c | 3 +- drivers/media/i2c/saa7191.c | 4 +- drivers/media/i2c/smiapp/smiapp-core.c | 18 ++------ drivers/media/i2c/sony-btf-mpx.c | 3 +- drivers/media/i2c/sr030pc30.c | 4 +- drivers/media/i2c/tda7432.c | 4 +- drivers/media/i2c/tda9840.c | 3 +- drivers/media/i2c/tea6415c.c | 3 +- drivers/media/i2c/tea6420.c | 3 +- drivers/media/i2c/tlv320aic23b.c | 4 +- drivers/media/i2c/tvaudio.c | 5 +- drivers/media/i2c/tvp514x.c | 1 - drivers/media/i2c/tvp5150.c | 14 ++---- drivers/media/i2c/tw2804.c | 5 +- drivers/media/i2c/tw9903.c | 5 +- drivers/media/i2c/tw9906.c | 5 +- drivers/media/i2c/uda1342.c | 3 +- drivers/media/i2c/upd64031a.c | 3 +- drivers/media/i2c/upd64083.c | 3 +- drivers/media/i2c/vp27smpx.c | 3 +- drivers/media/i2c/vpx3220.c | 5 +- drivers/media/i2c/vs6624.c | 20 ++------ drivers/media/i2c/wm8739.c | 4 +- drivers/media/i2c/wm8775.c | 4 +- 60 files changed, 179 insertions(+), 385 deletions(-) -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html