The patch titled Subject: backlight: convert backlight i2c drivers to module_i2c_driver has been added to the -mm tree. Its filename is backlight-convert-backlight-i2c-drivers-to-module_i2c_driver.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Axel Lin <axel.lin@xxxxxxxxx> Subject: backlight: convert backlight i2c drivers to module_i2c_driver Factor out some boilerplate code for i2c driver registration into module_i2c_driver. Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx> Cc: Michael Hennerich <hennerich@xxxxxxxxxxxxxxxxxxxx> Cc: Dmitry Baryshkov <dbaryshkov@xxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/backlight/adp8860_bl.c | 12 +----------- drivers/video/backlight/adp8870_bl.c | 12 +----------- drivers/video/backlight/tosa_bl.c | 13 +------------ 3 files changed, 3 insertions(+), 34 deletions(-) diff -puN drivers/video/backlight/adp8860_bl.c~backlight-convert-backlight-i2c-drivers-to-module_i2c_driver drivers/video/backlight/adp8860_bl.c --- a/drivers/video/backlight/adp8860_bl.c~backlight-convert-backlight-i2c-drivers-to-module_i2c_driver +++ a/drivers/video/backlight/adp8860_bl.c @@ -819,17 +819,7 @@ static struct i2c_driver adp8860_driver .id_table = adp8860_id, }; -static int __init adp8860_init(void) -{ - return i2c_add_driver(&adp8860_driver); -} -module_init(adp8860_init); - -static void __exit adp8860_exit(void) -{ - i2c_del_driver(&adp8860_driver); -} -module_exit(adp8860_exit); +module_i2c_driver(adp8860_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Michael Hennerich <hennerich@xxxxxxxxxxxxxxxxxxxx>"); diff -puN drivers/video/backlight/adp8870_bl.c~backlight-convert-backlight-i2c-drivers-to-module_i2c_driver drivers/video/backlight/adp8870_bl.c --- a/drivers/video/backlight/adp8870_bl.c~backlight-convert-backlight-i2c-drivers-to-module_i2c_driver +++ a/drivers/video/backlight/adp8870_bl.c @@ -991,17 +991,7 @@ static struct i2c_driver adp8870_driver .id_table = adp8870_id, }; -static int __init adp8870_init(void) -{ - return i2c_add_driver(&adp8870_driver); -} -module_init(adp8870_init); - -static void __exit adp8870_exit(void) -{ - i2c_del_driver(&adp8870_driver); -} -module_exit(adp8870_exit); +module_i2c_driver(adp8870_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Michael Hennerich <hennerich@xxxxxxxxxxxxxxxxxxxx>"); diff -puN drivers/video/backlight/tosa_bl.c~backlight-convert-backlight-i2c-drivers-to-module_i2c_driver drivers/video/backlight/tosa_bl.c --- a/drivers/video/backlight/tosa_bl.c~backlight-convert-backlight-i2c-drivers-to-module_i2c_driver +++ a/drivers/video/backlight/tosa_bl.c @@ -181,18 +181,7 @@ static struct i2c_driver tosa_bl_driver .id_table = tosa_bl_id, }; -static int __init tosa_bl_init(void) -{ - return i2c_add_driver(&tosa_bl_driver); -} - -static void __exit tosa_bl_exit(void) -{ - i2c_del_driver(&tosa_bl_driver); -} - -module_init(tosa_bl_init); -module_exit(tosa_bl_exit); +module_i2c_driver(tosa_bl_driver); MODULE_AUTHOR("Dmitry Baryshkov"); MODULE_LICENSE("GPL v2"); _ Subject: Subject: backlight: convert backlight i2c drivers to module_i2c_driver Patches currently in -mm which might be from axel.lin@xxxxxxxxx are origin.patch linux-next.patch drivers-video-backlight-adp88x0_blc-fix-bit-testing-logic.patch backlight-convert-backlight-i2c-drivers-to-module_i2c_driver.patch backlight-convert-backlight-spi-drivers-to-module_spi_driver.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